merged sniperbeamer's patches

fixed bug #1828965


git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@149 b624d157-de02-0410-bad0-e51aec6abb33
master
tarek_saidi 18 years ago
parent 5a210a8e30
commit 01ac6b3544
  1. 8
      INSTALL
  2. 87
      changelog
  3. 40
      keepass.pro
  4. 14
      share/applications/keepassx.desktop
  5. 501
      share/pixmaps/keepassx.xpm
  6. 35
      src/Application_X11.cpp
  7. 34
      src/Application_X11.h
  8. 8
      src/Database.cpp
  9. 28
      src/Kdb3Database.cpp
  10. 3
      src/Kdb3Database.h
  11. 64
      src/KpxConfig.cpp
  12. 34
      src/KpxConfig.h
  13. 2
      src/crypto/sha256.h
  14. 5
      src/crypto/twofish.cpp
  15. 33
      src/dialogs/AboutDlg.cpp
  16. 2
      src/dialogs/AddBookmarkDlg.cpp
  17. 84
      src/dialogs/AutoTypeDlg.cpp
  18. 44
      src/dialogs/AutoTypeDlg.h
  19. 35
      src/dialogs/CustomizeDetailViewDlg.cpp
  20. 12
      src/dialogs/CustomizeDetailViewDlg.h
  21. 4
      src/dialogs/DatabaseSettingsDlg.cpp
  22. 2
      src/dialogs/DatabaseSettingsDlg.h
  23. 33
      src/dialogs/EditEntryDlg.cpp
  24. 6
      src/dialogs/EditEntryDlg.h
  25. 10
      src/dialogs/EditGroupDlg.cpp
  26. 2
      src/dialogs/EditGroupDlg.h
  27. 4
      src/dialogs/ExpiredEntriesDlg.cpp
  28. 2
      src/dialogs/ExpiredEntriesDlg.h
  29. 2
      src/dialogs/ManageBookmarksDlg.cpp
  30. 28
      src/dialogs/PasswordDlg.cpp
  31. 5
      src/dialogs/PasswordDlg.h
  32. 6
      src/dialogs/PasswordGenDlg.cpp
  33. 4
      src/dialogs/SearchDlg.cpp
  34. 16
      src/dialogs/SelectIconDlg.cpp
  35. 3
      src/dialogs/SelectIconDlg.h
  36. 141
      src/dialogs/SettingsDlg.cpp
  37. 21
      src/dialogs/SettingsDlg.h
  38. 2
      src/dialogs/SimplePasswordDlg.cpp
  39. 4
      src/dialogs/TrashCanDlg.cpp
  40. 2
      src/dialogs/TrashCanDlg.h
  41. 2
      src/export/Export.cpp
  42. 2
      src/export/Export.h
  43. 8
      src/export/Export_KeePassX_Xml.h
  44. 6
      src/export/Export_Txt.h
  45. 20
      src/forms/AboutDlg.ui
  46. 81
      src/forms/AutoTypeDlg.ui
  47. 114
      src/forms/CustomizeDetailViewDlg.ui
  48. 236
      src/forms/DatabaseSettingsDlg.ui
  49. 83
      src/forms/EditGroupDlg.ui
  50. 122
      src/forms/MainWindow.ui
  51. 63
      src/forms/PasswordDlg.ui
  52. 115
      src/forms/SearchDlg.ui
  53. 160
      src/forms/SelectIconDlg.ui
  54. 526
      src/forms/SettingsDlg.ui
  55. 2
      src/import/Import.h
  56. 2
      src/import/Import_GnuKeyRing.h
  57. 4
      src/import/Import_KWalletXml.h
  58. 2
      src/import/Import_KeePassX_Xml.cpp
  59. 4
      src/import/Import_KeePassX_Xml.h
  60. 12
      src/import/Import_PwManager.cpp
  61. 4
      src/import/Import_PwManager.h
  62. 50
      src/lib/AutoType.h
  63. 1286
      src/lib/AutoType_X11.cpp
  64. 26
      src/lib/EntryView.cpp
  65. 3
      src/lib/EntryView.h
  66. 1
      src/lib/FileDialogs.h
  67. 22
      src/lib/GroupView.cpp
  68. 2
      src/lib/GroupView.h
  69. 899
      src/lib/HelperX11.cpp
  70. 57
      src/lib/HelperX11.h
  71. 4
      src/lib/SecString.h
  72. 118
      src/lib/ShortcutWidget.cpp
  73. 49
      src/lib/ShortcutWidget.h
  74. 75
      src/lib/bookmarks.cpp
  75. 4
      src/lib/bookmarks.h
  76. 4
      src/lib/random.cpp
  77. 275
      src/main.cpp
  78. 11
      src/main.h
  79. 420
      src/mainwindow.cpp
  80. 29
      src/mainwindow.h
  81. 62
      src/src.pro
  82. 1245
      src/translations/keepass-cs_CS.ts
  83. 1261
      src/translations/keepass-de_DE.ts
  84. 1236
      src/translations/keepass-es_ES.ts
  85. 1279
      src/translations/keepass-fr_FR.ts
  86. 1223
      src/translations/keepass-ru_RU.ts
  87. 1604
      src/translations/keepass-xx_XX.ts

@ -0,0 +1,8 @@
Installation instructions for *nix:
-----------------------------------
1. qmake-qt4 / qmake
You have to use qmake of Qt >= 4.2.0, depending on your distro it is called qmake or qmake-qt4.
By default KeePassX is installed to /usr, you can change that by adding PREFIX=[PATH] to the qmake command.
You can also add RELEASE=1 to build KeePassX optimized.
2. make
3. make install

@ -1,16 +1,83 @@
---------------
0.2.3
0.2.2.6
---------------
-fixed to long Auto-Type delay
-fixed wrong text color in the password repeation box when using new Qt versions (Bug #???)
-fixed problem with the assignment of group icons (custom icons metastream format rev 3)
-more stable drag&drop implementation which also works under MacOSX
-new more robust and flexible database back-end api
-replaced old AES implementation by the latest version of Brian Gladman's implementation.
-now using strong random number generator 'yarrow' instead of the standard library functions.
-final program icon
-bookmarks and the Detail View are saved in the config file
-fixed bug that caused unlock not to work when 'Remember last opened file' is disabled or the the search is used
-loading default Detail View didn't work
---------------
0.2.2.5
---------------
-fixed critical bug that caused the database to be only opened/saved with the keyfile when keyfile and password were selected
-fixed crash that could occur when locking a database that has unsaved changes
-don't hide window to tray if a modal window is opened
-auto-Type window is always on top and columns are automatically resized
---------------
0.2.2.4
---------------
-window is now minimized to tray even if the unlock dialog is shown
-fixed problem when restoring window using the tray icon
-support custom commands and placeholders in entry urls
-improved custom browser selection in the settings dialog
-all dialogs use the native button order
-window title indicates if there are unsaved changes
-improved many translation strings
---------------
0.2.2.3
---------------
-fixed a crash when the database is locked and KeePassX is restored
-fixed KeePassX is not always properly minimized after auto-type
-fixed global auto-type not working on non-ascii window titles
-added a setting to optionally use entry titles to match window for global auto-type
-added support for the delay command in auto-type
-expired entries are not used for global auto-type
-comparison of window titles is now always case-insensitive
-fixed cmd option -help didn't work
-output help on unrecognized argument
-fixed typo in desktop file
---------------
0.2.2.2
---------------
-added support for multiple Auto-Type-Window definitions
fully compatible to KeePass (http://keepass.info/help/base/autotype.html#autoglobal)
-added settings and command line options to start minimized and/or locked
-fixed window not always hidden when using 'Minimize to tray instead of taskbar'
-added pixmap and desktop file
-fixed a bunch of compiler warnings
---------------
0.2.2.1
---------------
Changes by Felix Geyer:
-added Global Auto-Type feature
-added database locking feature
-saves the sort column and order of the entry view
-added options 'Minimize to tray instead of taskbar', 'Lock workspace when minimizing the main window' and 'Global Auto-Type Shortcut'
-fixed Auto-Type while still holding modifier keys (ctrl, shift, ...) and caps lock
-fixed Auto-Type puts space at the beginning when using custom Auto-Type format
-fixed auto-typing of some non-Latin1 chars
-fixed crash when trying to auto-type invalid chars
-left click on the tray icon brings the main window to front when it's not the active window, otherwise hides it
-fixed a bunch of compiler warnings
-disabled all not yet working features
Official changes:
-system tray icon
-fine tuning options for auto-type
-fully customizable HTML based detail view
-secure random number generator based on Yarrow including an optional entropy collector
-new dialog to view expiered entries
-calendar widget to edit expiration dates in a more confortable way
-restructured password generator
-much better appearance under MacOS X
-final program icon
-misc. visual improvements
-new more robust and flexible database back-end api
-replaced old AES implementation by the latest version of Brian Gladman's implementation.
-(maybe incomplete)
---------------
0.2.2
@ -30,6 +97,7 @@
-alpha blending for banner icons
-new standard banner icon
-MacOS packages: all Qt libraries are now included in the application bundle (extra installation is not longer necessary)
---------------
0.2.1
---------------
@ -43,6 +111,7 @@
for entries which don't expire
-entry view now gets updated after changing the column setup
-added menu entry to change the size of the toolbar icons
---------------
0.2.0
---------------

@ -1,28 +1,28 @@
message("See 'Install.txt' for configuration options.")
message("*** Build Configuration:")
message("See 'INSTALL' for configuration options.")
#message("*** Build Configuration:")
TEMPLATE = subdirs
isEmpty(PREFIX){
PREFIX = /usr
}
isEmpty(KDEDIR){
KDEDIR = /usr
}
#isEmpty(KDEDIR){
# KDEDIR = /usr
#}
SUBDIRS += src
contains(INT_PLUGINS,kde) {
SUBDIRS +=src/plugins/kde
message("Build KDE Plugin: yes")
}
!contains(INT_PLUGINS,kde) {
message("Build KDE Plugin: no")
}
contains(INT_PLUGINS,gtk) {
SUBDIRS +=src/plugins/gnome
message("Build Gnome Plugin: yes")
}
!contains(INT_PLUGINS,gtk) {
message("Build Gnome Plugin: no")
}
#contains(INT_PLUGINS,kde) {
# SUBDIRS +=src/plugins/kde
# message("Build KDE Plugin: yes")
#}
#!contains(INT_PLUGINS,kde) {
# message("Build KDE Plugin: no")
#}
#contains(INT_PLUGINS,gtk) {
# SUBDIRS +=src/plugins/gnome
# message("Build Gnome Plugin: yes")
#}
#!contains(INT_PLUGINS,gtk) {
# message("Build Gnome Plugin: no")
#}
message("Install Prefix:" $$PREFIX)
message("KDE Prefix:" $$KDEDIR)
#message("KDE Prefix:" $$KDEDIR)
message("*** Makefile successfully generated.")
message("*** Start make now.")

@ -0,0 +1,14 @@
[Desktop Entry]
Encoding=UTF-8
Name=KeePassX
GenericName=Cross Platform Password Manager
GenericName[fr]=Gestionnaire de mot de passe
GenericName[de]=Passwortverwaltung
Exec=keepassx
Icon=keepassx.xpm
Comment=Cross Platform Password Manager
Comment[fr]=Gestionnaire de mot de passe
Comment[de]=Passwortverwaltung
Terminal=false
Type=Application
Categories=Qt;Utility;

@ -0,0 +1,501 @@
/* XPM */
static char * keepassx2_xpm[] = {
"32 32 466 2",
" c None",
". c #000000",
"+ c #181B16",
"@ c #0B0C0A",
"# c #6E7967",
"$ c #9BA596",
"% c #CBCFCA",
"& c #FAFAFA",
"* c #9CA696",
"= c #707D68",
"- c #0D110B",
"; c #343A30",
"> c #BCC3B8",
", c #FFFFFF",
"' c #FEFEFE",
") c #CED1CC",
"! c #ADB6A8",
"~ c #E6E7E5",
"{ c #BDC4B9",
"] c #3A4435",
"^ c #010101",
"/ c #4D5549",
"( c #EDEEED",
"_ c #FBFBFB",
": c #92A588",
"< c #66914E",
"[ c #65A142",
"} c #6EB048",
"| c #639B44",
"1 c #70975B",
"2 c #B7C0B1",
"3 c #55614D",
"4 c #030303",
"5 c #788375",
"6 c #839080",
"7 c #869283",
"8 c #899586",
"9 c #748270",
"0 c #060905",
"a c #141713",
"b c #D1D6CF",
"c c #EAECEA",
"d c #71935E",
"e c #63A93B",
"f c #64AB3C",
"g c #64AA3B",
"h c #63AA3A",
"i c #5F9F3A",
"j c #8A9E7F",
"k c #D1D7CF",
"l c #191F15",
"m c #E5E5E5",
"n c #909D8C",
"o c #111310",
"p c #8A9385",
"q c #88A07A",
"r c #6AAE44",
"s c #6BAE44",
"t c #64A93D",
"u c #628A4B",
"v c #637957",
"w c #5A903C",
"x c #67A543",
"y c #AFB8A9",
"z c #8F9B88",
"A c #E2E2E2",
"B c #AEB5AC",
"C c #BABFB8",
"D c #F9F9F9",
"E c #8E9A8A",
"F c #050805",
"G c #131513",
"H c #F2F2F2",
"I c #C2C9BE",
"J c #64A042",
"K c #6AAE43",
"L c #718367",
"M c #FCFCFC",
"N c #9D9D9D",
"O c #365424",
"P c #678F4F",
"Q c #F5F5F5",
"R c #1B2317",
"S c #DEDEDE",
"T c #B8BDB7",
"U c #2E7922",
"V c #337D24",
"W c #63825D",
"X c #869382",
"Y c #080A08",
"Z c #3E443A",
"` c #8CA281",
" . c #5FA539",
".. c #62A83B",
"+. c #5DA135",
"@. c #BFC1BE",
"#. c #30302F",
"$. c #63A240",
"%. c #BCC2B8",
"&. c #4A5742",
"*. c #D9DAD9",
"=. c #BBC0BB",
"-. c #3A7E31",
";. c #408735",
">. c #428935",
",. c #6D8866",
"'. c #869282",
"). c #0E0F0E",
"!. c #6B7667",
"~. c #7B9A6D",
"{. c #65A845",
"]. c #68AB46",
"^. c #6CAE47",
"/. c #65A440",
"(. c #A0A0A0",
"_. c #EAEAEA",
":. c #242424",
"<. c #76A45B",
"[. c #A3B29A",
"}. c #73816B",
"|. c #D2D3D2",
"1. c #FDFDFD",
"2. c #70886E",
"3. c #317A27",
"4. c #357F29",
"5. c #378029",
"6. c #6C8667",
"7. c #7C8A79",
"8. c #020301",
"9. c #7E8A79",
"0. c #689058",
"a. c #569E34",
"b. c #59A135",
"c. c #5CA437",
"d. c #5FA737",
"e. c #60A836",
"f. c #3F4F37",
"g. c #A6A6A6",
"h. c #C4C4C4",
"i. c #515151",
"j. c #0D1309",
"k. c #64AA3C",
"l. c #93AA87",
"m. c #819078",
"n. c #546153",
"o. c #6E876B",
"p. c #367E2D",
"q. c #3A832F",
"r. c #3C8430",
"s. c #728A6D",
"t. c #7C8879",
"u. c #0F0F0F",
"v. c #758071",
"w. c #809C75",
"x. c #5DA140",
"y. c #60A441",
"z. c #64A743",
"A. c #67AA45",
"B. c #6BAD47",
"C. c #5F963F",
"D. c #2E4223",
"E. c #181818",
"F. c #273420",
"G. c #6F9E55",
"H. c #AAB7A3",
"I. c #697861",
"J. c #020202",
"K. c #687468",
"L. c #6B8668",
"M. c #377F2F",
"N. c #3B8331",
"O. c #3C8230",
"P. c #758D71",
"Q. c #838E80",
"R. c #DADCD9",
"S. c #8FA289",
"T. c #559B3A",
"U. c #599E3B",
"V. c #5BA13C",
"W. c #5FA43D",
"X. c #61A73E",
"Y. c #64A93F",
"Z. c #67AC40",
"`. c #67A743",
" + c #67AC3F",
".+ c #CFD2CD",
"++ c #3C4936",
"@+ c #717E71",
"#+ c #638060",
"$+ c #2E7A26",
"%+ c #317D26",
"&+ c #337C27",
"*+ c #788D73",
"=+ c #DBDEDB",
"-+ c #558246",
";+ c #4E9734",
">+ c #529936",
",+ c #559C37",
"'+ c #59A039",
")+ c #5CA23B",
"!+ c #61A63D",
"~+ c #64A83F",
"{+ c #66AC40",
"]+ c #68AD40",
"^+ c #799669",
"/+ c #D8DBD7",
"(+ c #0F150B",
"_+ c #879287",
":+ c #F8F8F8",
"<+ c #658262",
"[+ c #3B8233",
"}+ c #3E8534",
"|+ c #3E8333",
"1+ c #7E927A",
"2+ c #EDEEEC",
"3+ c #5E8355",
"4+ c #51953C",
"5+ c #54983E",
"6+ c #579B3E",
"7+ c #5A9E3F",
"8+ c #5DA141",
"9+ c #60A442",
"0+ c #64A744",
"a+ c #66A945",
"b+ c #6AAC46",
"c+ c #67984B",
"d+ c #D9DCD8",
"e+ c #6E7C66",
"f+ c #050505",
"g+ c #090A09",
"h+ c #939E92",
"i+ c #F6F6F6",
"j+ c #5A7C57",
"k+ c #2C7823",
"l+ c #2E7A24",
"m+ c #317924",
"n+ c #7D9179",
"o+ c #5F7F58",
"p+ c #3B8628",
"q+ c #3E892A",
"r+ c #428C2B",
"s+ c #41892A",
"t+ c #468430",
"u+ c #4B952F",
"v+ c #4E9831",
"w+ c #529B32",
"x+ c #559E33",
"y+ c #59A235",
"z+ c #648F4E",
"A+ c #C3C9BF",
"B+ c #AEB7A8",
"C+ c #040603",
"D+ c #040404",
"E+ c #0A0C0A",
"F+ c #A3ADA3",
"G+ c #F3F3F3",
"H+ c #5D7E5A",
"I+ c #398132",
"J+ c #3E8434",
"K+ c #3D8132",
"L+ c #438935",
"M+ c #478C38",
"N+ c #498F39",
"O+ c #4C9039",
"P+ c #7C9275",
"Q+ c #CDD1CB",
"R+ c #7D9874",
"S+ c #658B56",
"T+ c #5E8A4C",
"U+ c #78986A",
"V+ c #92A589",
"W+ c #EEEEED",
"X+ c #BFC7BB",
"Y+ c #323D2D",
"Z+ c #080808",
"`+ c #181C18",
" @ c #B3BAB3",
".@ c #EFF0EF",
"+@ c #567B54",
"@@ c #327C2B",
"#@ c #347E2B",
"$@ c #38812D",
"%@ c #3B852E",
"&@ c #3E872E",
"*@ c #6C8965",
"=@ c #82907B",
"-@ c #141A13",
";@ c #0A0A0A",
">@ c #171817",
",@ c #ACB4AC",
"'@ c #638262",
")@ c #2A7624",
"!@ c #2E7927",
"~@ c #327C28",
"{@ c #5E8158",
"]@ c #848F81",
"^@ c #6E7E6B",
"/@ c #919F8D",
"(@ c #ABB4A8",
"_@ c #8E9C88",
":@ c #63725D",
"<@ c #313C2B",
"[@ c #0B0B0B",
"}@ c #121512",
"|@ c #ADB4AD",
"1@ c #698469",
"2@ c #2F772D",
"3@ c #337A30",
"4@ c #357D31",
"5@ c #3C8334",
"6@ c #547E4D",
"7@ c #DCDFDC",
"8@ c #EEEFEE",
"9@ c #525F4E",
"0@ c #101311",
"a@ c #A8B1A8",
"b@ c #658165",
"c@ c #1A681B",
"d@ c #1B691C",
"e@ c #1D6C1C",
"f@ c #216F1D",
"g@ c #24721F",
"h@ c #277520",
"i@ c #2B7822",
"j@ c #497843",
"k@ c #DADDD9",
"l@ c #E6E8E5",
"m@ c #3F4C3D",
"n@ c #151815",
"o@ c #AAB2AA",
"p@ c #6F876F",
"q@ c #2A722B",
"r@ c #2C752D",
"s@ c #316B32",
"t@ c #799179",
"u@ c #829882",
"v@ c #8B9F8A",
"w@ c #4F794D",
"x@ c #388032",
"y@ c #527E4C",
"z@ c #DEE0DD",
"A@ c #424D40",
"B@ c #0E110E",
"C@ c #A7B0A7",
"D@ c #708870",
"E@ c #236C24",
"F@ c #246F25",
"G@ c #236F24",
"H@ c #306431",
"I@ c #DDE0DD",
"J@ c #447341",
"K@ c #2E7827",
"L@ c #307A27",
"M@ c #4A7844",
"N@ c #D7DAD6",
"O@ c #D4D9D3",
"P@ c #2C3629",
"Q@ c #121412",
"R@ c #A6B0A6",
"S@ c #728972",
"T@ c #206A21",
"U@ c #226E23",
"V@ c #677667",
"W@ c #98A298",
"X@ c #D5DAD5",
"Y@ c #427340",
"Z@ c #317B2C",
"`@ c #357E2D",
" # c #4D7A47",
".# c #D6D9D5",
"+# c #CBD1CA",
"@# c #31382D",
"## c #131313",
"$# c #919B91",
"%# c #798D79",
"&# c #2A702B",
"*# c #286C29",
"=# c #29652A",
"-# c #365A36",
";# c #6B7A6B",
"># c #151715",
",# c #A6AEA6",
"'# c #CCD1CC",
")# c #41733F",
"!# c #357D2F",
"~# c #378030",
"{# c #4D7A46",
"]# c #D3D8D3",
"^# c #C1C7C0",
"/# c #20281F",
"(# c #B5BAB5",
"_# c #788E79",
":# c #186419",
"<# c #19681A",
"[# c #3E6E3E",
"}# c #C1C5C1",
"|# c #697A69",
"1# c #111511",
"2# c #ADB6AE",
"3# c #C1C9C1",
"4# c #346C31",
"5# c #287422",
"6# c #2C7825",
"7# c #457640",
"8# c #D1D6D0",
"9# c #AFB6AD",
"0# c #020502",
"a# c #B7BCB7",
"b# c #296C2A",
"c# c #447345",
"d# c #D7DAD7",
"e# c #D6D8D6",
"f# c #C3C7C3",
"g# c #C3C6C3",
"h# c #5F6F5F",
"i# c #161C16",
"j# c #BBC2BB",
"k# c #BAC2BA",
"l# c #3C733A",
"m# c #367E31",
"n# c #398133",
"o# c #4F744B",
"p# c #E2E3E2",
"q# c #0C110A",
"r# c #B6BBB6",
"s# c #216B22",
"t# c #396C3A",
"u# c #CDD2CD",
"v# c #B4BDB5",
"w# c #171E17",
"x# c #1F251F",
"y# c #C3C9C3",
"z# c #AEB8AE",
"A# c #2E6B2B",
"B# c #267321",
"C# c #396A34",
"D# c #DCDDDB",
"E# c #020701",
"F# c #EFEFEF",
"G# c #B1B8B1",
"H# c #D9DBD9",
"I# c #C9CFC9",
"J# c #1D271D",
"K# c #090909",
"L# c #222A23",
"M# c #CDD1CD",
"N# c #C0C7C0",
"O# c #A3B0A3",
"P# c #D7D9D7",
"Q# c #080B07",
"R# c #B1B6B1",
"S# c #F7F7F7",
"T# c #D7DAD8",
"U# c #364336",
"V# c #2F382F",
"W# c #D6DAD7",
"X# c #D0D4D0",
"Y# c #030603",
"Z# c #0C120C",
"`# c #0D150E",
" $ c #090F09",
".$ c #262F26",
"+$ c #485648",
"@$ c #475647",
"#$ c #475646",
"$$ c #404E3F",
" . . . + . . . ",
" @ # $ % & % * = - . ",
" . ; > , ' ) ! ~ , , { ] ^ ",
". . . . . . . / ( _ : < [ } | 1 2 , ( 3 . ",
"4 5 6 7 8 9 0 a b c d e f g g g h i j , k l . ",
"4 m , , , , n o ^ p , q r r s s t u v w x y , z 4 ",
". A ( B C D , E F G H I J s r r K L M , N O P Q H R . ",
". S T U V W _ , X Y Z , ` ...f f +.@., , ' #.$.%., &.. ",
". *.=.-.;.>.,.M , '.). . !., ~.{.].^.} /.(., , _.:.<.[., }.. ",
". |.1.2.3.4.5.6.1., 7.8.. 9., 0.a.b.c.d.e.f.g.h.i.j.k.l., m.. ",
". n.M 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.Z.`. + +i .+, ++. ",
" . @+, & #+$+%+&+*+, , , =+-+;+>+,+'+)+!+~+{+]+]+^+, /+(+. ",
" . ^ _+, :+<+[+}+|+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+ ",
" . `+ @, .@+@@@#@$@%@&@*@1., , , , , , :+=@-@;@. ",
" >@,@, _ '@)@!@~@4.{@:+, ]@^@/@(@_@:@<@^ [@ ",
" }@|@, M 1@2@3@4@I+5@6@7@, 8@9@. . ^ f+4 . ",
" 0@a@, 1.b@c@d@e@f@g@h@i@j@k@, l@m@f+ ",
" n@o@, ' p@q@r@s@t@u@v@w@x@[+y@d+, z@A@;@ ",
" B@C@, , D@E@F@G@H@, , , I@J@K@L@M@N@, O@P@. ",
" Q@R@, , S@T@U@U@G@H@, V@W@, X@Y@Z@`@ #.#, +#@### ",
". $#, , %#&#r@r@*#=#-#, ;#>#,#, '#)#!#~#{#]#, ^#/#. ",
". (#, _#:#<#<#[#}#_.1., |#. 1#2#, 3#4#5#6#7#8#, 9#0# ",
". a#}#b#r@r@c#d#, e#f#g#h#. . i#j#, k#l#m#n#o#, p#q#. ",
". r#a#s#U@t#u#, v#w#. . . . . x#y#, z#A#B#C#, D#E#. ",
". r#F#G#G#H#, I#J#K#. . . . . L#M#, N#O#R@, P#Q#. ",
". R#S#S#S#S#T#U#;@ . V#W#, , , , X#Y#. ",
". Z#`#`#`#`# $D+. . .$+$@$@$#$$$. . ",
". . . . . . . . . . . . . . . ",
" "};

@ -0,0 +1,35 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "Application_X11.h"
#include "lib/AutoType.h"
#include "lib/HelperX11.h"
KeepassApplication::KeepassApplication(int& argc, char** argv) : QApplication(argc, argv){
}
bool KeepassApplication::x11EventFilter(XEvent* event){
static const unsigned int remove_invalid = ControlMask|ShiftMask|Mod1Mask|Mod5Mask|Mod4Mask;
if (event->type==KeyPress && AutoType::shortcut.key!=0u && event->xkey.keycode==XKeysymToKeycode(event->xkey.display,HelperX11::getKeysym(AutoType::shortcut.key)) && (event->xkey.state&remove_invalid)==HelperX11::getShortcutModifierMask(AutoType::shortcut) && QApplication::focusWidget()==NULL ){
AutoType::performGlobal();
return true;
}
else
return QApplication::x11EventFilter(event);
}

@ -0,0 +1,34 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef APPLICATION_X11_H
#define APPLICATION_X11_H
#include <QApplication>
class KeepassApplication : public QApplication
{
Q_OBJECT
public:
KeepassApplication(int& argc, char** argv);
bool x11EventFilter(XEvent* event);
};
#endif // APPLICATION_X11_H

@ -20,6 +20,7 @@
#include "Database.h"
#include "lib/random.h"
#include <QCoreApplication>
KpxUuid::KpxUuid(){
Data.fill(0,16);
@ -76,12 +77,12 @@ bool KpxUuid::operator!=(const KpxUuid& other)const{
QString KpxDateTime::toString(Qt::DateFormat format) const{
if(*this==Date_Never)return QObject::tr("Never");
if(*this==Date_Never)return QCoreApplication::translate("Database","Never");
else return QDateTime::toString(format);
}
QString KpxDateTime::dateToString(Qt::DateFormat format) const{
if(*this==Date_Never)return QObject::tr("Never");
if(*this==Date_Never)return QCoreApplication::translate("Database","Never");
else return date().toString(format);
}
@ -107,7 +108,8 @@ bool KpxDateTime::operator<(const QDateTime& other){
if(*this==Date_Never && other==Date_Never)return false;
if(*this==Date_Never)return false;
if(other==Date_Never)return true;
return false;
}

@ -20,10 +20,9 @@
#include "global.h"
#include <iostream>
#include <time.h>
#include <qfile.h>
#include <qstringlist.h>
#include <qobject.h>
#include <qdatetime.h>
#include <QFile>
#include <QStringList>
#include <QDateTime>
#include <QSysInfo>
#include <QBuffer>
#include <QDir>
@ -135,11 +134,13 @@ bool Kdb3Database::isMetaStream(StdEntry& p){
bool Kdb3Database::parseCustomIconsMetaStreamV1(const QByteArray& dta){
Q_UNUSED(dta)
qDebug("Removed old CuIcMeSt v1");
return true;
}
bool Kdb3Database::parseCustomIconsMetaStreamV2(const QByteArray& dta){
Q_UNUSED(dta)
qDebug("Removed old CuIcMeSt v2");
return true;
}
@ -297,7 +298,7 @@ switch(FieldType)
entry->Expire=dateFromPackedStruct5(pData);
break;
case 0x000D:
entry->BinaryDesc=(char*)pData;
entry->BinaryDesc=QString::fromUtf8((char*)pData);
break;
case 0x000E:
if(FieldSize != 0)
@ -525,13 +526,13 @@ RootGroup.Handle=NULL;
memcpyFromLEnd16(&FieldType, pField);
pField += 2; pos += 2;
if(pos >= total_size) {
error=tr("Unexpected error: Offset is out of range. [G1]");
error=tr("Unexpected error: Offset is out of range.").append(" [G1]");
return false; }
memcpyFromLEnd32(&FieldSize, pField);
pField += 4; pos += 4;
if(pos >= (total_size + FieldSize)){
error=tr("Unexpected error: Offset is out of range. [G2]");
error=tr("Unexpected error: Offset is out of range.").append(" [G2]");
return false;}
bRet = readGroupField(&group,Levels, FieldType, FieldSize, (quint8 *)pField);
@ -542,7 +543,7 @@ RootGroup.Handle=NULL;
pField += FieldSize;
pos += FieldSize;
if(pos >= total_size) {
error=tr("Unexpected error: Offset is out of range. [G1]");
error=tr("Unexpected error: Offset is out of range.").append(" [G1]");
return false;}
}
@ -555,13 +556,13 @@ StdEntry entry;
memcpyFromLEnd16(&FieldType, pField);
pField += 2; pos += 2;
if(pos >= total_size){
error=tr("Unexpected error: Offset is out of range. [E1]");
error=tr("Unexpected error: Offset is out of range.").append(" [E1]");
return false;}
memcpyFromLEnd32(&FieldSize, pField);
pField += 4; pos += 4;
if(pos >= (total_size + FieldSize)) {
error=tr("Unexpected error: Offset is out of range. [E2]");
error=tr("Unexpected error: Offset is out of range.").append(" [E2]");
return false; }
bRet = readEntryField(&entry,FieldType,FieldSize,(quint8*)pField);
@ -574,7 +575,7 @@ StdEntry entry;
pField += FieldSize;
pos += FieldSize;
if(pos >= total_size) {
error=tr("Unexpected error: Offset is out of range. [E3]");
error=tr("Unexpected error: Offset is out of range.").append(" [E3]");
return false; }
}
@ -1200,7 +1201,8 @@ bool Kdb3Database::save(){
NumGroups = Groups.size();
NumEntries = Entries.size()+UnknownMetaStreams.size()+MetaStreams.size();
qSort(Entries.begin(),Entries.end(),StdEntryLessThan);
QList<StdEntry> saveEntries = Entries;
qSort(saveEntries.begin(),saveEntries.end(),StdEntryLessThan);
randomize(FinalRandomSeed,16);
randomize(TransfRandomSeed,32);
@ -1209,7 +1211,7 @@ bool Kdb3Database::save(){
unsigned int pos=DB_HEADER_SIZE; // Skip the header, it will be written later
serializeGroups(Groups,buffer,pos);
serializeEntries(Entries,buffer,pos);
serializeEntries(saveEntries,buffer,pos);
serializeEntries(UnknownMetaStreams,buffer,pos);
serializeEntries(MetaStreams,buffer,pos);
SHA256::hashBuffer(buffer+DB_HEADER_SIZE,ContentsHash,pos-DB_HEADER_SIZE);

@ -30,8 +30,7 @@
#define PWM_FLAG_TWOFISH 8
#define PWM_STD_KEYENCROUNDS 6000
#include <qcolor.h>
#include <qobject.h>
#include <QColor>
#include <QDateTime>
#include <QDate>
#include <QTime>

@ -22,10 +22,12 @@
***************************************************************************/
#include "KpxConfig.h"
#include <Qt>
#include <QApplication>
#include <QSettings>
#include <QDir>
KpxConfig::KpxConfig(const QString& filePath) : settings(filePath,QSettings::IniFormat){
configFile=filePath;
if (settings.contains("Options/GroupTreeRestore") && !settings.contains("Options/GroupTreeState")){
switch (settings.value("Options/GroupTreeRestore",1).toInt()){
case 0:
@ -45,6 +47,34 @@ KpxConfig::KpxConfig(const QString& filePath) : settings(filePath,QSettings::Ini
setUrlCmd(QString());
}
#ifdef GLOBAL_AUTOTYPE
Shortcut KpxConfig::globalShortcut(){
Shortcut s;
s.key = settings.value("Options/GlobalShortcutKey",0).toUInt();
QBitArray mods = settings.value("Options/GlobalShortcutMods",QBitArray(5)).toBitArray();
if (mods.size()!=5)
mods = QBitArray(5);
s.ctrl = mods.testBit(0);
s.shift = mods.testBit(1);
s.alt = mods.testBit(2);
s.altgr = mods.testBit(3);
s.win = mods.testBit(4);
return s;
}
void KpxConfig::setGlobalShortcut(const Shortcut& s){
settings.setValue("Options/GlobalShortcutKey", s.key);
QBitArray mods(5);
mods.setBit(0, s.ctrl);
mods.setBit(1, s.shift);
mods.setBit(2, s.alt);
mods.setBit(3, s.altgr);
mods.setBit(4, s.win);
settings.setValue("Options/GlobalShortcutMods", mods);
}
#endif
unsigned KpxConfig::fileDlgHistorySize(){
settings.beginGroup("FileDlgHistory");
unsigned res=static_cast<unsigned>(settings.childKeys().size());
@ -183,3 +213,35 @@ QString KpxConfig::keyTypeToString(tKeyType keyType){
}
return res;
}
QString KpxConfig::detailViewTemplate(){
if (settings.contains("UI/DetailsView")){
return QString::fromUtf8( qUncompress(settings.value("UI/DetailsView").toByteArray()) );
}
else{
return defaultDetailViewTemplate();
}
}
QString KpxConfig::defaultDetailViewTemplate(){
QFile templ(":/default-detailview.html");
templ.open(QIODevice::ReadOnly);
QString value=QString::fromUtf8(templ.readAll());
templ.close();
value.replace("Group",QCoreApplication::translate("DetailViewTemplate","Group"));
value.replace("Title",QCoreApplication::translate("DetailViewTemplate","Title"));
value.replace("Username",QCoreApplication::translate("DetailViewTemplate","Username"));
value.replace("Password",QCoreApplication::translate("DetailViewTemplate","Password"));
value.replace("URL",QCoreApplication::translate("DetailViewTemplate","URL"));
value.replace("Creation",QCoreApplication::translate("DetailViewTemplate","Creation"));
value.replace("Last Access",QCoreApplication::translate("DetailViewTemplate","Last Access"));
value.replace("Last Modification",QCoreApplication::translate("DetailViewTemplate","Last Modification"));
value.replace("Expiration",QCoreApplication::translate("DetailViewTemplate","Expiration"));
value.replace("Comment",QCoreApplication::translate("DetailViewTemplate","Comment"));
return value;
}
void KpxConfig::setDetailViewTemplate(const QString& value){
settings.setValue("UI/DetailsView", qCompress(value.toUtf8(),9) );
}

@ -24,6 +24,7 @@
#define _KPXCONFIG_H_
#include "main.h"
#include "AutoType.h"
#include <QBitArray>
#include <QByteArray>
#include <QColor>
@ -43,6 +44,8 @@
class KpxConfig{
public:
friend class KpxBookmarks;
enum IntegrPluginType{NoIntegr,KDE,Gnome};
enum GrpTreeState{DoNothing,RestoreLast,ExpandAll};
@ -56,6 +59,8 @@ public:
QBitArray columns(){return stringToBitArray(settings.value("UI/Columns","11111000000").toString(),11);}
QList<int> columnOrder(){return stringToIntArray(settings.value("UI/ColumnOrder","100,100,100,100,100,100,100,100,100,100,100").toString(),11);}
QList<int> columnSizes(){return stringToIntArray(settings.value("UI/ColumnSizes","15,10,10,10,10,10,10,10,10,10,10").toString(),11);}
int columnSort(){return settings.value("UI/ColumnSort",0).toInt();}
Qt::SortOrder columnSortOrder(){return static_cast<Qt::SortOrder>(settings.value("UI/ColumnSortOrder",Qt::AscendingOrder).toInt());}
QStringList fileDlgHistory(unsigned index){return settings.value(QString("FileDlgHistory/ENTRY%1").arg(index)).toStringList();}
GrpTreeState groupTreeState(){return stringToGrpTreeState(settings.value("Options/GroupTreeState").toString());}
bool hidePasswords(){return settings.value("UI/HidePasswords",true).toBool();}
@ -68,6 +73,9 @@ public:
tKeyType lastKeyType(){return stringToKeyType(settings.value("Options/LastKeyType").toString());}
QRect mainWindowGeometry(const QRect& defaultValue){return settings.value("UI/MainWindowGeometry",defaultValue).toRect();}
bool minimizeToTray(){return settings.value("Options/MinimizeToTray",false).toBool();}
bool minimizeTray(){return settings.value("Options/MinimizeTray",false).toBool();}
bool startMinimized(){return settings.value("Options/StartMinimized",false).toBool();}
bool startLocked(){return settings.value("Options/StartLocked",false).toBool();}
QString mountDir(){return settings.value("Options/MountDir",DEFAULT_MOUNT_DIR).toString();}
bool openLastFile(){return settings.value("Options/OpenLastFile",true).toBool();}
QString pwGenCharList(){return settings.value("Options/PwGenCharList").toString();}
@ -80,15 +88,23 @@ public:
bool showEntryDetails(){return settings.value("UI/ShowEntryDetails",true).toBool();}
bool showPasswords(){return settings.value("Options/ShowPasswords",false).toBool();}
bool showPasswordsPasswordDlg(){return settings.value("Options/ShowPasswordsPasswordDlg",false).toBool();}
bool lockOnMinimize(){return settings.value("Options/LockOnMinimize",false).toBool();}
bool showStatusbar(){return settings.value("UI/ShowStatusbar",true).toBool();}
bool showSysTrayIcon(){return settings.value("Options/ShowSysTrayIcon",false).toBool();}
bool showToolbar(){return settings.value("UI/ShowToolbar",true).toBool();}
int toolbarIconSize(){return settings.value("UI/ToolbarIconSize",16).toInt();}
QString urlCmd(){return settings.value("Options/UrlCmd").toString();}
bool urlCmdDef(){return settings.value("Options/UrlCmdDef",true).toBool();}
QByteArray vSplitterPos(){return settings.value("UI/VSplitterPos").toByteArray();}
bool askBeforeDelete(){return settings.value("Options/AskBeforeDelete",true).toBool();}
#ifdef AUTOTYPE
int autoTypePreGap(){return settings.value("Options/AutoTypePreGap",500).toInt();}
int autoTypeKeyStrokeDelay(){return settings.value("Options/AutoTypeKeyStrokeDelay",0).toInt();}
#endif
#ifdef GLOBAL_AUTOTYPE
Shortcut globalShortcut();
bool entryTitlesMatch(){return settings.value("Options/EntryTitlesMatch",true).toBool();}
#endif
bool featureBookmarks(){return settings.value("Features/Bookmarks",true).toBool();}
void setAlternatingRowColors(bool value){settings.setValue("Options/AlternatingRowColors",value);}
@ -99,6 +115,8 @@ public:
void setColumns(const QBitArray& value){settings.setValue("UI/Columns",bitArrayToString(value));}
void setColumnOrder(const QList<int>& value){settings.setValue("UI/ColumnOrder",intArrayToString(value));}
void setColumnSizes(const QList<int>& value){settings.setValue("UI/ColumnSizes",intArrayToString(value));}
void setColumnSort(int value){settings.setValue("UI/ColumnSort",value);}
void setColumnSortOrder(int value){settings.setValue("UI/ColumnSortOrder",value);}
void setFileDlgHistory(unsigned index,const QStringList& value){settings.setValue(QString("FileDlgHistory/ENTRY%1").arg(index), value);}
void setGroupTreeState(GrpTreeState value){settings.setValue("Options/GroupTreeState",grpTreeStateToString(value));}
void setHidePasswords(bool value){settings.setValue("UI/HidePasswords",value);}
@ -111,6 +129,9 @@ public:
void setLastKeyType(tKeyType value){settings.setValue("Options/LastKeyType",keyTypeToString(value));}
void setMainWindowGeometry(const QRect& value){settings.setValue("UI/MainWindowGeometry",value);}
void setMinimizeToTray(bool value){settings.setValue("Options/MinimizeToTray",value);}
void setMinimizeTray(bool value){settings.setValue("Options/MinimizeTray",value);}
void setStartMinimized(bool value){settings.setValue("Options/StartMinimized",value);}
void setStartLocked(bool value){settings.setValue("Options/StartLocked",value);}
void setMountDir(const QString& value){settings.setValue("Options/MountDir",value);}
void setOpenLastFile(bool value){settings.setValue("Options/OpenLastFile",value);}
void setPwGenCharList(const QString& value){settings.setValue("Options/PwGenCharList",value);}
@ -123,22 +144,35 @@ public:
void setShowEntryDetails(bool value){settings.setValue("UI/ShowEntryDetails",value);}
void setShowPasswords(bool value){settings.setValue("Options/ShowPasswords",value);}
void setShowPasswordsPasswordDlg(bool value){settings.setValue("Options/ShowPasswordsPasswordDlg",value);}
void setLockOnMinimize(bool value){settings.setValue("Options/LockOnMinimize",value);}
void setShowStatusbar(bool value){settings.setValue("UI/ShowStatusbar",value);}
void setShowSysTrayIcon(bool value){settings.setValue("Options/ShowSysTrayIcon",value);}
void setShowToolbar(bool value){settings.setValue("UI/ShowToolbar",value);}
void setToolbarIconSize(int value){settings.setValue("UI/ToolbarIconSize",value);}
void setUrlCmd(const QString& value){settings.setValue("Options/UrlCmd",value);}
void setUrlCmdDef(bool value){settings.setValue("Options/UrlCmdDef",value);}
void setVSplitterPos(const QByteArray& value){settings.setValue("UI/VSplitterPos",value);}
void setAskBeforeDelete(bool value){settings.setValue("Options/AskBeforeDelete",value);}
#ifdef AUTOTYPE
void setAutoTypePreGap(int value){settings.setValue("Options/AutoTypePreGap",value);}
void setAutoTypeKeyStrokeDelay(int value){settings.setValue("Options/AutoTypeKeyStrokeDelay",value);}
#endif
#ifdef GLOBAL_AUTOTYPE
void setGlobalShortcut(const Shortcut& s);
void setEntryTitlesMatch(bool value){settings.setValue("Options/EntryTitlesMatch",value);}
#endif
void setFeatureBookmarks(bool value){settings.setValue("Features/Bookmarks",value);}
unsigned fileDlgHistorySize();
void clearFileDlgHistory(){settings.remove("FileDlgHistory");};
QString detailViewTemplate();
QString defaultDetailViewTemplate();
void setDetailViewTemplate(const QString& value);
private:
QSettings settings;
QString configFile;
QColor stringToColor(const QString& str);
QBitArray stringToBitArray(const QString& str, unsigned count);

@ -22,7 +22,7 @@
#ifndef _SHA256_H
#define _SHA256_H
#include <qglobal.h>
#include <QGlobalStatic>
typedef struct
{

@ -171,7 +171,8 @@
* Standard include files will probably be ok.
*/
#include <qstring.h> /* for memset(), memcpy(), and memcmp() */
#include <QString> /* for memset(), memcpy(), and memcmp() */
#include <cstdlib>
#include "twofish.h"
@ -476,7 +477,7 @@
void Twofish_fatal(char* msg){
qCritical("Twofish: Fatal Error");
qCritical("Twofish: Fatal Error: %s",msg);
exit(1);
}

@ -17,7 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <qmessagebox.h>
#include <QMessageBox>
#include <QPainter>
#include "AboutDlg.h"
@ -26,41 +26,42 @@
AboutDialog::AboutDialog(QWidget* parent):QDialog(parent)
{
setupUi(this);
createBanner(&BannerPixmap,getPixmap("keepassx_large"),tr("%1 %2").arg(APP_DISPLAY_NAME, APP_VERSION),width());
createBanner(&BannerPixmap,getPixmap("keepassx_large"),QString("%1 %2").arg(APP_DISPLAY_NAME, APP_VERSION),width());
loadLicFromFile();
labelAppName->setText(tr(APP_DISPLAY_NAME));
labelAppFunc->setText(tr(" - %1").arg(APP_LONG_FUNC));
labelAppName->setText(APP_DISPLAY_NAME);
labelAppFunc->setText(QString(" - ").append(APP_LONG_FUNC));
QString AboutTr=tr("<b>Current Translation: None</b><br><br>","Please replace 'None' with the language of your translation");
if(TrActive){
AboutTr+=tr("<b>Author:</b> %1<br>").arg(tr("$TRANSLATION_AUTHOR"));
QString mail=tr("$TRANSLATION_AUTHOR_EMAIL","Here you can enter your email or homepage if you want.");
if(mail!=QString()){
if(!mail.isEmpty()){
AboutTr+=mail+"<br>";
}
AboutTr+="<br>";
}
Edit_Translation->setHtml(AboutTr+tr("\
Information on how to translate KeePassX can be found under:\n\
http://keepassx.sourceforge.net/"));
Edit_Translation->setHtml(AboutTr+tr("Information on how to translate KeePassX can be found under:")
+"<br>http://keepassx.sourceforge.net/");
QString str;
str+="<b>"+tr("Team")+"</b><br>";
str+="<div style='margin-left:10px;'>";
str+="<u>"+tr("Tarek Saidi")+"</u><br>"+tr("Developer, Project Admin")+"<br>"+tr("tarek_saidi@users.sf.net")+"<br>";
str+="<u>Tarek Saidi</u><br>"+tr("Developer, Project Admin")+"<br>tarek_saidi@users.sf.net<br>";
str+="<br>";
str+="<u>"+tr("Eugen Gorschenin")+"</u><br>"+tr("Web Designer")+"<br>"+tr("geugen@users.sf.de")+"<br>";
str+="<u>Eugen Gorschenin</u><br>"+tr("Web Designer")+"<br>geugen@users.sf.de<br>";
str+="<br>";
str+="<u>"+tr("Juan J Gonz&aacute;lez C&aacute;rdenas [Jota Jota]")+"</u><br>"+tr("Developer")+"<br>"+tr("myxelf@users.sf.net")+"<br>";
str+="<u>Juan J Gonz&aacute;lez C&aacute;rdenas [Jota Jota]</u><br>"+tr("Developer")+"<br>myxelf@users.sf.net<br>";
str+="</div><br><div style='margin-left:0px;'>";
str+="<b>"+tr("Thanks To")+"</b><br>";
str+="</div><div style='margin-left:10px;'>";
str+="<u>"+tr("Matthias Miller")+"</u><br>"+tr("Patches for better MacOS X support")+"<br>"+tr("www.outofhanwell.com")+"<br></div>";
str+="<u>Matthias Miller</u><br>"+tr("Patches for better MacOS X support")+"<br>www.outofhanwell.com<br></div>";
str+="<br>";
str+="<u>"+tr("James Nicholls")+"</u><br>"+tr("Main Application Icon")/*+"<br>"+tr("mailto:???")*/+"<br></div>";
str+="<u>James Nicholls</u><br>"+tr("Main Application Icon")/*+"<br>"+tr("mailto:???")*/+"<br></div>";
str+="<br>";
str+="<u>"+tr("Constantin Makshin")+"</u><br>"+tr("Various fixes and improvements")+"<br>"+tr("dinosaur-rus@users.sourceforge.net")+"<br></div>";
str+="<u>Constantin Makshin</u><br>"+tr("Various fixes and improvements")+"<br>dinosaur-rus@users.sourceforge.net<br></div>";
Edit_Thanks->setHtml(str);
connect(ButtonBox, SIGNAL(accepted()), SLOT(close()));
}
void AboutDialog::paintEvent(QPaintEvent *event){
@ -87,7 +88,7 @@ return;
if(!gpl.open(QIODevice::ReadOnly)){
QMessageBox::critical(this,tr("Error"),tr("Could not open file '%1'")
.arg("'license.txt'")+tr("The following error occured:\n%1").arg(gpl.errorString())
.arg("'license.txt'")+"\n"+tr("The following error occured:")+"\n"+gpl.errorString()
,tr("OK"),0,0,2,1);
return;
}
@ -100,7 +101,7 @@ delete buffer;
}
void AboutDialog::OnHomepageClicked(){
openBrowser(tr("http://keepassx.sf.net"));
openBrowser("http://keepassx.sf.net");
}
void AboutDialog::OnEMailClicked(){

@ -35,7 +35,7 @@ AddBookmarkDlg::AddBookmarkDlg(QWidget* parent, QString DefaultFilename, int _It
if(ItemID==-1){
createBanner(&BannerPixmap,getPixmap("bookmark_add"),tr("Add Bookmark"),width());
if(DefaultFilename==QString())
if(DefaultFilename.isEmpty())
OnButtonBrowse();
else
Edit_Filename->setText(DefaultFilename);

@ -0,0 +1,84 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "AutoTypeDlg.h"
#include "KpxConfig.h"
#include <QDesktopWidget>
#include <QPainter>
#include <QPaintEvent>
AutoTypeDlg::AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers){
setupUi(this);
createBanner(&BannerPixmap,getPixmap("keepassx_large"),tr("Auto-Type"),width());
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags()|Qt::WindowStaysOnTopHint);
setGeometry( QRect(QApplication::desktop()->screenGeometry(QCursor::pos()).center() - rect().center(), size()) );
setWindowIcon(getIcon("keepassx"));
entryList->setAlternatingRowColors(config->alternatingRowColors());
QList<QTreeWidgetItem*> itemList;
AutoTypeEntry autoTypeEntry;
for (int i=0; i<entries.size(); i++){
QStringList cols;
cols << entries[i]->group()->title() << entries[i]->title();
if (config->hideUsernames())
cols << "****";
else
cols << entries[i]->username();
QTreeWidgetItem* widgetItem = new QTreeWidgetItem(cols);
itemList.append(widgetItem);
autoTypeEntry.dbHandle = entries[i];
autoTypeEntry.nr = numbers[i];
itemToEntry.insert(widgetItem, autoTypeEntry);
}
qSort(itemList.begin(), itemList.end(), itemLessThan);
for (int i=0; i<itemList.size(); i++)
entryList->addTopLevelItem(itemList[i]);
entryList->resizeColumnToContents(0);
entryList->resizeColumnToContents(1);
entryList->resizeColumnToContents(2);
connect(ButtonBox, SIGNAL(rejected()), SLOT(close()));
connect(entryList, SIGNAL(itemClicked(QTreeWidgetItem*,int)), SLOT(itemSelected(QTreeWidgetItem*)));
}
bool AutoTypeDlg::itemLessThan(QTreeWidgetItem* i1, QTreeWidgetItem* i2){
if (i1->text(0) != i2->text(0))
return i1->text(0) < i2->text(0);
else if (i1->text(1) != i2->text(1))
return i1->text(1) < i2->text(1);
else
return i1->text(2) < i2->text(2);
}
void AutoTypeDlg::paintEvent(QPaintEvent* event){
QWidget::paintEvent(event);
QPainter painter(this);
painter.setClipRegion(event->region());
painter.drawPixmap(QPoint(0,0),BannerPixmap);
}
void AutoTypeDlg::itemSelected(QTreeWidgetItem* item){
close();
QString err;
AutoType::perform(itemToEntry[item].dbHandle,err,false,itemToEntry[item].nr);
}

@ -0,0 +1,44 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "ui_AutoTypeDlg.h"
#include "Database.h"
class AutoTypeDlg : public QWidget, private Ui::AutoTypeDlg
{
Q_OBJECT
public:
AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers);
protected:
void paintEvent(QPaintEvent* event);
private slots:
void itemSelected(QTreeWidgetItem* item);
private:
struct AutoTypeEntry {
IEntryHandle* dbHandle;
int nr;
};
static bool itemLessThan(QTreeWidgetItem* i1, QTreeWidgetItem* i2);
QHash<QTreeWidgetItem*,AutoTypeEntry> itemToEntry;
QPixmap BannerPixmap;
};

@ -27,6 +27,7 @@
#include <QMenu>
#include "main.h"
#include "CustomizeDetailViewDlg.h"
#include "KpxConfig.h"
bool DisableButtonSlots=false;
@ -59,14 +60,14 @@ CustomizeDetailViewDialog::CustomizeDetailViewDialog(QWidget* parent):QDialog(pa
connect(BtnBold,SIGNAL(toggled(bool)),this,SLOT(OnBtnBold(bool)));
connect(BtnItalic,SIGNAL(toggled(bool)),this,SLOT(OnBtnItalic(bool)));
connect(BtnUnderline,SIGNAL(toggled(bool)),this,SLOT(OnBtnUnderline(bool)));
connect(BtnAlignLeft,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignLeft(bool)));
connect(BtnAlignRight,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignRight(bool)));
connect(BtnAlignCenter,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignCenter(bool)));
connect(BtnAlignBlock,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignBlock(bool)));
connect(BtnAlignLeft,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignLeft()));
connect(BtnAlignRight,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignRight()));
connect(BtnAlignCenter,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignCenter()));
connect(BtnAlignBlock,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignBlock()));
connect(BtnColor,SIGNAL(clicked()),this,SLOT(OnBtnColor()));
connect(ButtonSave,SIGNAL(clicked()),this,SLOT(OnSave()));
connect(ButtonCancel,SIGNAL(clicked()),this,SLOT(OnCancel()));
connect(ButtonRestore,SIGNAL(clicked()),this,SLOT(OnRestoreDefault()));
connect(ButtonBox,SIGNAL(accepted()),this,SLOT(OnSave()));
connect(ButtonBox,SIGNAL(rejected()),this,SLOT(OnCancel()));
connect(ButtonBox,SIGNAL(clicked(QAbstractButton*)),this,SLOT(OnRestoreDefault(QAbstractButton*)));
connect(tmplmenu,SIGNAL(triggered(QAction*)),this,SLOT(OnInsertTemplate(QAction*)));
connect(RichEdit,SIGNAL(cursorPositionChanged()),this,SLOT(OnCursorPositionChanged()));
connect(TabWidget,SIGNAL(currentChanged(int)),this,SLOT(OnTabChanged(int)));
@ -160,25 +161,25 @@ void CustomizeDetailViewDialog::OnBtnUnderline(bool toggled){
}
void CustomizeDetailViewDialog::OnBtnAlignLeft(bool toggled){
void CustomizeDetailViewDialog::OnBtnAlignLeft(){
if(DisableButtonSlots)return;
RichEdit->setAlignment(Qt::AlignLeft);
OnCursorPositionChanged();
}
void CustomizeDetailViewDialog::OnBtnAlignRight(bool toggled){
void CustomizeDetailViewDialog::OnBtnAlignRight(){
if(DisableButtonSlots)return;
RichEdit->setAlignment(Qt::AlignRight);
OnCursorPositionChanged();
}
void CustomizeDetailViewDialog::OnBtnAlignCenter(bool toggled){
void CustomizeDetailViewDialog::OnBtnAlignCenter(){
if(DisableButtonSlots)return;
RichEdit->setAlignment(Qt::AlignHCenter);
OnCursorPositionChanged();
}
void CustomizeDetailViewDialog::OnBtnAlignBlock(bool toggled){
void CustomizeDetailViewDialog::OnBtnAlignBlock(){
if(DisableButtonSlots)return;
RichEdit->setAlignment(Qt::AlignJustify);
OnCursorPositionChanged();
@ -203,6 +204,8 @@ void CustomizeDetailViewDialog::OnSave(){
else if(TabWidget->currentIndex()==1)
DetailViewTemplate=HtmlEdit->toPlainText();
config->setDetailViewTemplate(DetailViewTemplate);
done(1);
}
@ -210,8 +213,10 @@ void CustomizeDetailViewDialog::OnCancel(){
done(0);
}
void CustomizeDetailViewDialog::OnRestoreDefault(){
loadDefaultDetailViewTemplate();
HtmlEdit->setPlainText(DetailViewTemplate);
RichEdit->setHtml(DetailViewTemplate);
void CustomizeDetailViewDialog::OnRestoreDefault(QAbstractButton* button){
if (button==ButtonBox->button(QDialogButtonBox::RestoreDefaults)){
DetailViewTemplate = config->defaultDetailViewTemplate();
HtmlEdit->setPlainText(DetailViewTemplate);
RichEdit->setHtml(DetailViewTemplate);
}
}

@ -20,7 +20,7 @@
#ifndef _CUSTOMIZE_DETAIL_VIEW_H_
#define _CUSTOMIZE_DETAIL_VIEW_H_
#include "ui_CustomizeDetailViewDlg.h";
#include "ui_CustomizeDetailViewDlg.h"
#include <QColor>
#include <QAction>
@ -33,14 +33,14 @@ class CustomizeDetailViewDialog : public QDialog, public Ui_CustomizeDetailViewD
void OnBtnBold(bool);
void OnBtnItalic(bool);
void OnBtnUnderline(bool);
void OnBtnAlignLeft(bool);
void OnBtnAlignRight(bool);
void OnBtnAlignCenter(bool);
void OnBtnAlignBlock(bool);
void OnBtnAlignLeft();
void OnBtnAlignRight();
void OnBtnAlignCenter();
void OnBtnAlignBlock();
void OnBtnColor();
void OnSave();
void OnCancel();
void OnRestoreDefault();
void OnRestoreDefault(QAbstractButton* button);
void OnInsertTemplate(QAction*);
void OnCursorPositionChanged();
void OnTabChanged(int index);

@ -37,8 +37,8 @@ CDbSettingsDlg::CDbSettingsDlg(QWidget* parent,IDatabase* db, bool modal, Qt::W
ComboAlgo->insertItem(1,tr("Twofish: 256 Bit"));
ComboAlgo->setCurrentIndex(database->cryptAlgorithm()); //Achtung: AlgoID muss gleich dem ComboBox Index sein!
EditRounds->setText(QString::number(database->keyTransfRounds()));
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
connect( ButtonCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
connect( ButtonBox, SIGNAL( accepted() ), this, SLOT( OnOK() ) );
connect( ButtonBox, SIGNAL( rejected() ), this, SLOT( OnCancel() ) );
}
CDbSettingsDlg::~CDbSettingsDlg()

@ -26,7 +26,7 @@
#include "Database.h"
#include <QPaintEvent>
class CDbSettingsDlg : public QDialog, public Ui_dbsettingdlg_base
class CDbSettingsDlg : public QDialog, public Ui_DatabaseSettingsDlg
{
Q_OBJECT
public:

@ -20,21 +20,16 @@
#include "main.h"
#include "KpxConfig.h"
#include <qpushbutton.h>
#include <qpalette.h>
#include <qfont.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <QPalette>
#include <QFont>
#include <QProgressBar>
#include <QTextEdit>
#include <qpixmap.h>
#include <qcolor.h>
#include <qcombobox.h>
#include <qpainter.h>
#include <qpen.h>
#include <QPixmap>
#include <QColor>
#include <QPainter>
#include <QPen>
#include <QFileDialog>
#include <qmessagebox.h>
#include <qtoolbutton.h>
#include <QMessageBox>
#include <QToolButton>
#include <QShowEvent>
#include <QResizeEvent>
#include <math.h>
@ -59,8 +54,8 @@ CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* paren
connect(Edit_Title, SIGNAL(textChanged(const QString&)), this, SLOT( OnTitleTextChanged(const QString&)));
connect(Edit_Password_w, SIGNAL(editingFinished()), this, SLOT(OnPasswordwLostFocus()));
connect(Edit_Password_w, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordwTextChanged(const QString&)));
connect(Edit_Password, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordTextChanged(const QString&)));
connect(Edit_Password_w, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordwTextChanged()));
connect(Edit_Password, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordTextChanged()));
connect(ButtonEchoMode, SIGNAL(clicked()), this, SLOT( ChangeEchoMode()));
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT( OnButtonCancel()));
connect(ButtonOpenAttachment, SIGNAL(clicked()), this, SLOT( OnNewAttachment()));
@ -71,7 +66,7 @@ CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* paren
connect(CheckBox_ExpiresNever,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxExpiresNeverChanged(int)));
connect(Button_Icons,SIGNAL(clicked()),this,SLOT(OnButtonIcons()));
connect(ExpirePresetsMenu,SIGNAL(triggered(QAction*)),this,SLOT(OnExpirePreset(QAction*)));
connect(ButtonExpirePresets,SIGNAL(triggered(QAction*)),this,SLOT(OnCalendar(QAction*)));
connect(ButtonExpirePresets,SIGNAL(triggered(QAction*)),this,SLOT(OnCalendar()));
// QAction::data() contains the time until expiration in days.
ExpirePresetsMenu->addAction(tr("Today"))->setData(0);
@ -281,7 +276,7 @@ void CEditEntryDlg::OnTitleTextChanged(const QString& txt)
setWindowTitle((txt=="") ? tr("[Untitled Entry]") : txt);
}
void CEditEntryDlg::OnPasswordTextChanged(const QString& txt)
void CEditEntryDlg::OnPasswordTextChanged()
{
Edit_Password_w->setText(QString());
int bits=(Edit_Password->text().length()*8);
@ -290,7 +285,7 @@ if(bits>128)bits=128;
Progress_Quali->setValue(100*bits/128);
}
void CEditEntryDlg::OnPasswordwTextChanged(const QString& w)
void CEditEntryDlg::OnPasswordwTextChanged()
{
if(QString::compare(Edit_Password_w->text(),Edit_Password->text().mid(0,(Edit_Password_w->text().length())))!=0){
@ -430,7 +425,7 @@ void CEditEntryDlg::OnExpirePreset(QAction* action){
DateTime_Expire->setTime(QTime(0,0,0));
}
void CEditEntryDlg::OnCalendar(QAction* action){
void CEditEntryDlg::OnCalendar(){
CalendarDialog dlg(this);
if(dlg.exec()==QDialog::Accepted){
CheckBox_ExpiresNever->setChecked(false);

@ -48,8 +48,8 @@ class CEditEntryDlg : public QDialog, public Ui_EditEntryDialog
public slots:
void OnTitleTextChanged(const QString&);
void OnPasswordwLostFocus();
void OnPasswordwTextChanged(const QString&);
void OnPasswordTextChanged(const QString&);
void OnPasswordwTextChanged();
void OnPasswordTextChanged();
void ChangeEchoMode();
void OnButtonCancel();
void OnNewAttachment();
@ -60,7 +60,7 @@ class CEditEntryDlg : public QDialog, public Ui_EditEntryDialog
void OnButtonIcons();
void OnButtonOK();
void OnExpirePreset(QAction*);
void OnCalendar(QAction*);
void OnCalendar();
private:
virtual void showEvent(QShowEvent *);

@ -20,8 +20,6 @@
#include "main.h"
#include <qcombobox.h>
#include <qlineedit.h>
#include <QShowEvent>
#include "EditGroupDlg.h"
#include "SelectIconDlg.h"
@ -35,8 +33,8 @@ CEditGroupDialog::CEditGroupDialog(IDatabase* database,IGroupHandle* Handle,QWid
group=new CGroup();
group->Title=handle->title();
group->Image=handle->image();
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
connect( ButtonCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
connect( ButtonBox, SIGNAL( accepted() ), this, SLOT( OnOK() ) );
connect( ButtonBox, SIGNAL( rejected() ), this, SLOT( OnCancel() ) );
connect( Button_Icon, SIGNAL( clicked() ), this, SLOT( OnIconDlg() ));
}
@ -48,8 +46,8 @@ CEditGroupDialog::CEditGroupDialog(IDatabase* database,CGroup* Group,QWidget* pa
db=database;
group=Group;
handle=NULL;
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
connect( ButtonCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
connect( ButtonBox, SIGNAL( accepted() ), this, SLOT( OnOK() ) );
connect( ButtonBox, SIGNAL( rejected() ), this, SLOT( OnCancel() ) );
connect( Button_Icon, SIGNAL( clicked() ), this, SLOT( OnIconDlg() ));
}

@ -22,7 +22,7 @@
#define EDITGROUPDLG_H
#include "ui_EditGroupDlg.h"
#include <qstring.h>
#include <QString>
#include <QShowEvent>
#include "Database.h"

@ -39,7 +39,7 @@ ExpiredEntriesDialog::ExpiredEntriesDialog(QWidget* parent,IDatabase* database,c
item->setIcon(1,database->icon(Entries[i]->image()));
}
connect(treeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(OnItemDoubleClicked(QTreeWidgetItem*,int)));
connect(treeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(OnItemDoubleClicked(QTreeWidgetItem*)));
}
@ -55,7 +55,7 @@ void ExpiredEntriesDialog::resizeEvent(QResizeEvent* event){
QDialog::resizeEvent(event);
}
void ExpiredEntriesDialog::OnItemDoubleClicked(QTreeWidgetItem* item, int column){
void ExpiredEntriesDialog::OnItemDoubleClicked(QTreeWidgetItem* item){
SelectedEntry=Entries[item->data(0,Qt::UserRole).toInt()];
accept();
}

@ -38,7 +38,7 @@ class ExpiredEntriesDialog:public QDialog, public Ui_ExpiredEntriesDialog{
virtual void resizeEvent(QResizeEvent *);
private slots:
void OnItemDoubleClicked(QTreeWidgetItem*,int);
void OnItemDoubleClicked(QTreeWidgetItem*);
};

@ -128,4 +128,4 @@ void ManageBookmarksDlg::closeEvent(QCloseEvent * event){
}
KpxBookmarks::resort(Order);
event->accept();
}
}

@ -25,7 +25,6 @@
#include <QComboBox>
#include <QPushButton>
#include <QMessageBox>
#include <QStringList>
#include <QPainter>
#include <QPalette>
#include <QMenu>
@ -56,7 +55,7 @@ CPasswordDialog::CPasswordDialog(QWidget* parent,QString filename,IDatabase* DB,
}
Combo_Dirs->setEditText(QString());
if(config->rememberLastKey() && !ChangeKeyMode){
if(config->rememberLastKey() && config->openLastFile() && !ChangeKeyMode){
switch(config->lastKeyType()){
case KEYFILE:
setStateKeyFileOnly();
@ -101,24 +100,22 @@ CPasswordDialog::CPasswordDialog(QWidget* parent,QString filename,IDatabase* DB,
}
connect(Combo_Dirs, SIGNAL( editTextChanged(const QString&) ),this, SLOT( OnComboTextChanged(const QString&)));
connect(ButtonCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
connect(ButtonBox, SIGNAL( rejected() ), this, SLOT( OnCancel() ) );
connect(Edit_Password, SIGNAL( textChanged(const QString&) ), this, SLOT( OnPasswordChanged(const QString&) ) );
connect(CheckBox_Both, SIGNAL( stateChanged(int) ), this, SLOT( OnCheckBox_BothChanged(int) ) );
connect(ButtonChangeEchoMode, SIGNAL( clicked() ), this, SLOT( ChangeEchoModeDatabaseKey() ) );
connect(Edit_Password, SIGNAL( returnPressed() ), this, SLOT( OnOK() ) );
connect(Edit_PasswordRep, SIGNAL( returnPressed() ), this, SLOT( OnOK() ) );
connect(ButtonExit, SIGNAL( clicked()),this,SLOT(OnButtonExit()));
connect(BookmarkMenu,SIGNAL(triggered(QAction*)),this,SLOT(OnBookmarkTriggered(QAction*)));
ButtonExit->setVisible(IsAuto);
Mode_Set=ChangeKeyMode;
if(!ChangeKeyMode){
Edit_PasswordRep->hide();
Label_PasswordRep->hide();
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
connect( ButtonBox, SIGNAL( accepted() ), this, SLOT( OnOK() ) );
connect( ButtonBrowse, SIGNAL( clicked() ), this, SLOT( OnButtonBrowse() ) );
}else{
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK_Set() ) );
connect( ButtonBox, SIGNAL( accepted() ), this, SLOT( OnOK_Set() ) );
connect( ButtonBrowse, SIGNAL( clicked() ), this, SLOT( OnButtonBrowse_Set() ) );
}
@ -168,7 +165,7 @@ void CPasswordDialog::setStateBoth(){
void CPasswordDialog::OnButtonBrowse()
{
QString filename=KpxFileDialogs::openExistingFile(this,"PasswordDlg",tr("Select a Key File"),
QStringList() << tr("All Files (*)") << tr("Key Files (*.key)"));
QStringList() << tr("Key Files (*.key)") << tr("All Files (*)"));
if(filename!=QString()){
Combo_Dirs->setEditText(filename);
}
@ -178,7 +175,7 @@ void CPasswordDialog::OnButtonBrowse()
void CPasswordDialog::OnButtonBrowse_Set()
{
QString filename=KpxFileDialogs::saveFile(this,"PasswordDlg",tr("Select a Key File"),
QStringList() << tr("All Files (*)") << tr("Key Files (*.key)"),
QStringList() << tr("Key Files (*.key)") << tr("All Files (*)"),
false);
if(filename!=QString()){
Combo_Dirs->setEditText(filename);
@ -307,14 +304,14 @@ bool CPasswordDialog::doAuth(){
if(!password.isEmpty() && keyfile.isEmpty()){
DbAuth->authByPwd(password);
}
if(password.isEmpty() && !keyfile.isEmpty()){
else if(password.isEmpty() && !keyfile.isEmpty()){
if(!DbAuth->authByFile(keyfile))return false;
}
if(!password.isEmpty() && !keyfile.isEmpty()){
if(!DbAuth->authByFile(keyfile))return false;
else if(!password.isEmpty() && !keyfile.isEmpty()){
if(!DbAuth->authByFileAndPwd(password, keyfile))return false;
}
if(config->rememberLastKey()){
if(config->rememberLastKey() && config->openLastFile()){
QString KeyLocation=keyfile;
if(config->saveRelativePaths()){
KeyLocation=KeyLocation.left(KeyLocation.lastIndexOf("/"));
@ -371,11 +368,6 @@ else{
Edit_PasswordRep->setEchoMode(QLineEdit::Normal);}
}
void CPasswordDialog::OnButtonExit(){
done(2);
}
void CPasswordDialog::paintEvent(QPaintEvent* event){
QDialog::paintEvent(event);
QPainter painter(this);

@ -48,15 +48,14 @@ class CPasswordDialog : public QDialog, public Ui_PasswordDlg
QString BookmarkFilename;
tKeyType KeyType;
bool OverwriteKeyFile;
CPasswordDialog(QWidget* parent,QString filename,IDatabase* DB,bool ShowExitButton = false, bool KeyMode_Set=false);
CPasswordDialog(QWidget* parent,QString filename,IDatabase* DB,bool IsAuto=false,bool ChangeKeyMode=false);
public slots:
private slots:
void OnOK();
void OnOK_Set();
void OnCancel();
void OnButtonBrowse();
void OnButtonBrowse_Set();
void OnButtonExit();
void OnPasswordChanged(const QString &txt);
void OnCheckBox_BothChanged(int state);
void ChangeEchoModeDatabaseKey();

@ -58,12 +58,12 @@ CGenPwDialog::CGenPwDialog(QWidget* parent, bool StandAloneMode,Qt::WFlags fl)
connect(Edit_chars,SIGNAL(textEdited(const QString&)),this,SLOT(OnCharsChanged(const QString&)));
if(!StandAloneMode){
AcceptButton=DialogButtons->addButton(tr("Accept"),QDialogButtonBox::AcceptRole);
AcceptButton=DialogButtons->addButton(QDialogButtonBox::Ok);
AcceptButton->setDisabled(true);
DialogButtons->addButton(QDialogButtonBox::Cancel);
}
else{
DialogButtons->addButton(tr("OK"),QDialogButtonBox::AcceptRole);
DialogButtons->addButton(QDialogButtonBox::Close);
AcceptButton=NULL;
}
@ -259,7 +259,7 @@ void CGenPwDialog::estimateQuality(){
Progress_Quali->setFormat(tr("%1 Bits").arg((int)bits));
Progress_Quali->update();
if(bits>128)bits=128;
Progress_Quali->setValue(bits);
Progress_Quali->setValue((int)bits);
}
void CGenPwDialog::OnCharsChanged(const QString& str){

@ -21,6 +21,7 @@
#include <QLineEdit>
#include <QCheckBox>
#include <QPushButton>
#include <QRegExp>
#include <QMessageBox>
#include <QPainter>
@ -32,8 +33,9 @@
SearchDialog::SearchDialog(IDatabase* database,IGroupHandle* Group,QWidget* parent):QDialog(parent)
{
setupUi(this);
QPushButton* Button_Search = ButtonBox->addButton(tr("Search"),QDialogButtonBox::ActionRole);
connect( Button_Search, SIGNAL( clicked() ), this, SLOT( OnSearch() ) );
connect( Button_Close, SIGNAL( clicked() ), this, SLOT( OnClose() ) );
connect( ButtonBox, SIGNAL( rejected() ), this, SLOT( OnClose() ) );
db=database;
group=Group;
createBanner(&BannerPixmap,getPixmap("search"),tr("Search"),width());

@ -22,12 +22,12 @@
#include <QDir>
#include <QFile>
#include <QPixmap>
#include <QPushButton>
#include <QMessageBox>
#include <QShowEvent>
#include "SelectIconDlg.h"
CSelectIconDlg::CSelectIconDlg(IDatabase* database,int CurrentId,QWidget* parent, bool modal, Qt::WFlags fl):QDialog(parent,fl){
setupUi(this);
db=database;
@ -35,12 +35,14 @@ CSelectIconDlg::CSelectIconDlg(IDatabase* database,int CurrentId,QWidget* parent
CtxMenu=new QMenu(this);
ReplaceAction=CtxMenu->addAction(getIcon("swap"),tr("Replace..."));
DeleteAction=CtxMenu->addAction(getIcon("delete"),tr("Delete"));
QPushButton* Button_AddIcon = ButtonBox->addButton(tr("Add Custom Icon"), QDialogButtonBox::ActionRole);
Button_PickIcon = ButtonBox->addButton(tr("Pick"), QDialogButtonBox::AcceptRole);
connect(Button_AddIcon, SIGNAL(clicked()), this, SLOT(OnAddIcon()));
connect(Button_PickIcon, SIGNAL(clicked()), this, SLOT(OnPickIcon()));
connect(Button_Cancel, SIGNAL(clicked()), this, SLOT(OnCancel()));
connect(ButtonBox, SIGNAL(rejected()), this, SLOT(OnCancel()));
connect(DeleteAction,SIGNAL(triggered()),this,SLOT(OnDelete()));
connect(ReplaceAction,SIGNAL(triggered()),this,SLOT(OnReplace()));
connect(List,SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),this,SLOT(OnSelectionChanged(QListWidgetItem*,QListWidgetItem*)));
connect(List,SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),this,SLOT(OnSelectionChanged(QListWidgetItem*)));
}
void CSelectIconDlg::updateView(){
@ -64,12 +66,12 @@ void CSelectIconDlg::OnAddIcon(){
for(int i=0;i<filenames.size();i++){
QPixmap icon;
if(!icon.load(filenames[i])){
errors+=tr("%1: File could not be loaded.\n").arg(filenames[i].section("/",-1));
errors+=tr("%1: File could not be loaded.").arg(filenames[i].section("/",-1)).append("\n");
continue;}
dynamic_cast<ICustomIcons*>(db)->addIcon(icon.scaled(16,16,Qt::KeepAspectRatio,Qt::SmoothTransformation));
}
if(errors.size())
QMessageBox::warning(this,tr("Error"),tr("An error occured while loading the icon(s):\n%1").arg(errors));
QMessageBox::warning(this,tr("Error"),tr("An error occured while loading the icon(s):").append("\n").append(errors));
updateView();
List->setCurrentItem(List->item(List->count()-1));
}
@ -96,7 +98,7 @@ void CSelectIconDlg::OnDelete(){
void CSelectIconDlg::OnReplace(){
QString filename=QFileDialog::getOpenFileName(this,tr("Add Icons..."),QDir::homePath(),tr("Images (%1)")
.arg("*.png *.jpeg *.jpg *.bmp *.gif *.bpm *.pgm *.ppm *.xbm *xpm"));
if(filename==QString())return;
if(filename.isEmpty())return;
QPixmap icon;
if(!icon.load(filename)){
QMessageBox::warning(this,tr("Error"),tr("An error occured while loading the icon."));
@ -114,7 +116,7 @@ void CSelectIconDlg::OnCancel(){
done(-1);
}
void CSelectIconDlg::OnSelectionChanged(QListWidgetItem* cur,QListWidgetItem* prev){
void CSelectIconDlg::OnSelectionChanged(QListWidgetItem* cur){
Button_PickIcon->setEnabled(cur);
}

@ -39,7 +39,7 @@ public slots:
void OnCancel();
void OnDelete();
void OnReplace();
void OnSelectionChanged(QListWidgetItem*,QListWidgetItem*);
void OnSelectionChanged(QListWidgetItem*);
private:
int Id;
@ -48,6 +48,7 @@ private:
QMenu* CtxMenu;
QAction* DeleteAction;
QAction* ReplaceAction;
QPushButton* Button_PickIcon;
protected:
virtual void contextMenuEvent(QContextMenuEvent *event);

@ -19,11 +19,8 @@
#include "main.h"
#include "KpxConfig.h"
#include <qpixmap.h>
#include <qcheckbox.h>
#include <qspinbox.h>
#include <qcolordialog.h>
#include <qlineedit.h>
#include <QPixmap>
#include <QColorDialog>
#include <QFileDialog>
#include <QDir>
#include <QPainter>
@ -40,29 +37,49 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog)
connect(DialogButtons, SIGNAL( accepted() ), this, SLOT( OnOK() ) );
connect(DialogButtons, SIGNAL( rejected() ), this, SLOT( OnCancel() ) );
connect(DialogButtons, SIGNAL( clicked(QAbstractButton*)), this, SLOT(OnOtherButton(QAbstractButton*)));
connect(CheckBox_ShowSysTrayIcon, SIGNAL( toggled(bool) ), CheckBox_CloseToTray, SLOT( setEnabled(bool) ) );
connect(CheckBox_ShowSysTrayIcon, SIGNAL( toggled(bool) ), CheckBox_MinimizeTray, SLOT( setEnabled(bool) ) );
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_RememberLastKey, SLOT( setEnabled(bool) ) );
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_StartMinimized, SLOT( setEnabled(bool) ) );
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_StartLocked, SLOT( setEnabled(bool) ) );
connect(Button_ClearFileDlgHistory, SIGNAL(clicked()), &fileDlgHistory, SLOT(clear()));
connect(ButtonColor1, SIGNAL( clicked() ), this, SLOT( OnColor1() ) );
connect(ButtonColor2, SIGNAL( clicked() ), this, SLOT( OnColor2() ) );
connect(ButtonTextColor, SIGNAL( clicked() ), this, SLOT( OnTextColor() ) );
connect(CheckBox_OpenLast,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxOpenLastChanged(int)));
connect(Button_MountDirBrowse,SIGNAL(clicked()),this,SLOT(OnMountDirBrowse()));
connect(Button_BrowserCmdBrowse,SIGNAL(clicked()),this,SLOT(OnBrowserCmdBrowse()));
connect(Radio_IntPlugin_None,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginNone(bool)));
connect(Radio_IntPlugin_Gnome,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginGnome(bool)));
connect(Radio_IntPlugin_Kde,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginKde(bool)));
connect(Radio_IntPlugin_None,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginNone()));
connect(Radio_IntPlugin_Gnome,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginGnome()));
connect(Radio_IntPlugin_Kde,SIGNAL(toggled(bool)),this,SLOT(OnIntPluginKde()));
connect(CheckBox_BrowserDefault,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxBrowserDefaultChanged(int)));
connect(Button_CustomizeEntryDetails,SIGNAL(clicked()),this,SLOT(OnCustomizeEntryDetails()));
#if !defined(AUTOTYPE)
Box_AutoType->setVisible(false);
#endif
#if !defined(GLOBAL_AUTOTYPE)
Label_GlobalShortcut->setVisible(false);
Edit_GlobalShortcut->setVisible(false);
#endif
#ifdef GLOBAL_AUTOTYPE
pShortcut = AutoType::shortcut;
connect(this,SIGNAL(rejected()),SLOT(resetGlobalShortcut()));
#endif
createBanner(&BannerPixmap,getPixmap("appsettings"),tr("Settings"),width());
//General
CheckBox_OpenLast->setChecked(config->openLastFile());
CheckBox_RememberLastKey->setChecked(config->rememberLastKey());
checkBox_ShowSysTrayIcon->setChecked(config->showSysTrayIcon());
checkBox_MinimizeToTray->setChecked(config->minimizeToTray());
CheckBox_ShowSysTrayIcon->setChecked(config->showSysTrayIcon());
CheckBox_CloseToTray->setChecked(config->minimizeToTray());
CheckBox_MinimizeTray->setChecked(config->minimizeTray());
CheckBox_StartMinimized->setChecked(config->startMinimized());
CheckBox_StartLocked->setChecked(config->startLocked());
checkBox_SaveFileDlgHistory->setChecked(config->saveFileDlgHistory());
checkBox_AskBeforeDelete->setChecked(config->askBeforeDelete());
@ -103,13 +120,15 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog)
SpinBox_ClipboardTime->setValue(config->clipboardTimeOut());
CheckBox_ShowPasswords->setChecked(config->showPasswords());
CheckBox_ShowPasswords_PasswordDlg->setChecked(config->showPasswordsPasswordDlg());
CheckBox_LockMinimize->setChecked(config->lockOnMinimize());
//Features
CheckBox_FeatureBookmarks->setChecked(config->featureBookmarks());
//Desktop Integration
if(PluginLoadError==QString())
// TODO Desktop Integration
tabWidgetSettings->removeTab(tabWidgetSettings->indexOf(tabIntegration));
/*if(PluginLoadError==QString())
Label_IntPlugin_Error->hide();
else
Label_IntPlugin_Error->setText(QString("<html><p style='font-weight:600; color:#8b0000;'>%1</p></body></html>")
@ -126,24 +145,23 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog)
Radio_IntPlugin_None->setChecked(true);
}
if(!PluginsModified)
Label_IntPlugin_Info->hide();
Label_IntPlugin_Info->hide();*/
//Advanced
QString BrowserCmd=config->urlCmd();
if(BrowserCmd.isEmpty()){
CheckBox_BrowserDefault->setChecked(true);
Edit_BrowserCmd->setDisabled(true);
}
else{
Edit_BrowserCmd->setText(BrowserCmd);
CheckBox_BrowserDefault->setChecked(false);
}
Box_BrowserCmd->setChecked(!config->urlCmdDef());
Edit_BrowserCmd->setText(config->urlCmd());
Edit_MountDir->setText(config->mountDir());
CheckBox_SaveRelativePaths->setChecked(config->saveRelativePaths());
#ifdef AUTOTYPE
SpinBox_AutoTypePreGap->setValue(config->autoTypePreGap());
SpinBox_AutoTypeKeyStrokeDelay->setValue(config->autoTypeKeyStrokeDelay());
#endif
#ifdef GLOBAL_AUTOTYPE
Edit_GlobalShortcut->setShortcut(config->globalShortcut());
CheckBox_EntryTitlesMatch->setChecked(config->entryTitlesMatch());
#endif
}
CSettingsDlg::~CSettingsDlg()
@ -157,16 +175,6 @@ void CSettingsDlg::paintEvent(QPaintEvent *event){
painter.drawPixmap(QPoint(0,0),BannerPixmap);
}
void CSettingsDlg::OnCheckBoxBrowserDefaultChanged(int state){
if(state==Qt::Checked){
Edit_BrowserCmd->setDisabled(true);
Edit_BrowserCmd->setText(QString());
}
else{
Edit_BrowserCmd->setDisabled(false);
}
}
void CSettingsDlg::OnOK()
{
apply();
@ -184,10 +192,13 @@ void CSettingsDlg::OnOtherButton(QAbstractButton* button){
}
void CSettingsDlg::apply(){
//General
config->setShowSysTrayIcon(checkBox_ShowSysTrayIcon->isChecked());
config->setMinimizeToTray(checkBox_MinimizeToTray->isChecked());
config->setShowSysTrayIcon(CheckBox_ShowSysTrayIcon->isChecked());
config->setMinimizeToTray(CheckBox_CloseToTray->isChecked());
config->setMinimizeTray(CheckBox_MinimizeTray->isChecked());
config->setStartMinimized(CheckBox_StartMinimized->isChecked());
config->setStartLocked(CheckBox_StartLocked->isChecked());
config->setSaveFileDlgHistory(checkBox_SaveFileDlgHistory->isChecked());
if(Radio_GroupTreeRestore->isChecked())config->setGroupTreeState(KpxConfig::RestoreLast);
else if(Radio_GroupTreeExpand->isChecked())config->setGroupTreeState(KpxConfig::ExpandAll);
@ -206,27 +217,32 @@ void CSettingsDlg::apply(){
config->setClipboardTimeOut(SpinBox_ClipboardTime->value());
config->setShowPasswords(CheckBox_ShowPasswords->isChecked());
config->setShowPasswordsPasswordDlg(CheckBox_ShowPasswords_PasswordDlg->isChecked());
config->setLockOnMinimize(CheckBox_LockMinimize->isChecked());
//Features
config->setFeatureBookmarks(CheckBox_FeatureBookmarks->isChecked());
//Desktop Integration
PluginsModified=Label_IntPlugin_Info->isVisible();
//TODO Desktop Integration
/*PluginsModified=Label_IntPlugin_Info->isVisible();
if(Radio_IntPlugin_Kde->isChecked())config->setIntegrPlugin(KpxConfig::KDE);
else if(Radio_IntPlugin_Gnome->isChecked())config->setIntegrPlugin(KpxConfig::Gnome);
else config->setIntegrPlugin(KpxConfig::NoIntegr);
else config->setIntegrPlugin(KpxConfig::NoIntegr);*/
//Advanced
config->setUrlCmdDef(!Box_BrowserCmd->isChecked());
config->setUrlCmd(Edit_BrowserCmd->text());
config->setMountDir(Edit_MountDir->text());
if(!config->mountDir().isEmpty() && config->mountDir().right(1)!="/")
config->setMountDir(config->mountDir()+"/");
if(CheckBox_BrowserDefault->isChecked())config->setUrlCmd(QString());
else config->setUrlCmd(Edit_BrowserCmd->text());
config->setSaveRelativePaths(CheckBox_SaveRelativePaths->isChecked());
#ifdef AUTOTYPE
config->setAutoTypePreGap(SpinBox_AutoTypePreGap->value());
config->setAutoTypeKeyStrokeDelay(SpinBox_AutoTypeKeyStrokeDelay->value());
#endif
#ifdef GLOBAL_AUTOTYPE
config->setGlobalShortcut(Edit_GlobalShortcut->shortcut());
config->setEntryTitlesMatch(CheckBox_EntryTitlesMatch->isChecked());
#endif
}
void CSettingsDlg::OnTextColor()
@ -270,31 +286,29 @@ void CSettingsDlg::OnColor1()
}
}
void CSettingsDlg::OnCheckBoxOpenLastChanged(int state){
if(state==Qt::Checked){
CheckBox_RememberLastKey->setEnabled(true);
}else{
CheckBox_RememberLastKey->setEnabled(false);
CheckBox_RememberLastKey->setChecked(false);
}
}
void CSettingsDlg::OnMountDirBrowse(){
QString dir=QFileDialog::getExistingDirectory(this,tr("Select a directory..."),"/");
if(dir!=QString()){
Edit_MountDir->setText(dir);
QString dir=QFileDialog::getExistingDirectory(this,tr("Select a directory..."));
if(!dir.isEmpty()){
Edit_MountDir->setText(dir);
}
}
void CSettingsDlg::OnBrowserCmdBrowse(){
QString filename=QFileDialog::getOpenFileName(this,tr("Select an executable..."));
if(!filename.isEmpty()){
Edit_BrowserCmd->setText(filename);
}
}
void CSettingsDlg::OnIntPluginNone(bool toggled){
void CSettingsDlg::OnIntPluginNone(){
Label_IntPlugin_Info->show();
}
void CSettingsDlg::OnIntPluginGnome(bool toggled){
void CSettingsDlg::OnIntPluginGnome(){
Label_IntPlugin_Info->show();
}
void CSettingsDlg::OnIntPluginKde(bool toggled){
void CSettingsDlg::OnIntPluginKde(){
Label_IntPlugin_Info->show();
}
@ -303,3 +317,10 @@ void CSettingsDlg::OnCustomizeEntryDetails(){
CustomizeDetailViewDialog dlg(this);
dlg.exec();
}
#ifdef GLOBAL_AUTOTYPE
void CSettingsDlg::resetGlobalShortcut(){
AutoType::unregisterGlobalShortcut();
AutoType::registerGlobalShortcut(pShortcut);
}
#endif

@ -27,6 +27,7 @@
#include <QPaintEvent>
#include "ui_SettingsDlg.h"
#include "main.h"
#include "lib/AutoType.h"
class CSettingsDlg : public QDialog, public Ui_SettingsDialog
{
@ -42,19 +43,27 @@ class CSettingsDlg : public QDialog, public Ui_SettingsDialog
virtual void OnColor2();
virtual void OnColor1();
void OnOtherButton(QAbstractButton*);
void OnIntPluginNone(bool);
void OnIntPluginGnome(bool);
void OnIntPluginKde(bool);
void OnCheckBoxOpenLastChanged(int state);
void OnCheckBoxBrowserDefaultChanged(int state);
void OnIntPluginNone();
void OnIntPluginGnome();
void OnIntPluginKde();
void OnMountDirBrowse();
void OnBrowserCmdBrowse();
void OnCustomizeEntryDetails();
#ifdef GLOBAL_AUTOTYPE
private slots:
void resetGlobalShortcut();
#endif
private:
virtual void paintEvent(QPaintEvent*);
void apply();
QColor color1,color2,textcolor;
QPixmap BannerPixmap;
#ifdef GLOBAL_AUTOTYPE
Shortcut pShortcut;
#endif
static bool PluginsModified;
};

@ -41,7 +41,7 @@ SimplePasswordDialog::~SimplePasswordDialog()
}
void SimplePasswordDialog::OnTextChanged(const QString& txt){
if(txt==QString())
if(txt.isEmpty())
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
else
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);

@ -39,7 +39,7 @@ TrashCanDialog::TrashCanDialog(QWidget* parent,IDatabase* database,const QList<I
item->setIcon(1,database->icon(Entries[i]->image()));
}
connect(treeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(OnItemDoubleClicked(QTreeWidgetItem*,int)));
connect(treeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(OnItemDoubleClicked(QTreeWidgetItem*)));
connect(treeWidget,SIGNAL(customContextMenuRequested(const QPoint&)),this,SLOT(OnContextMenu(const QPoint&)));
ContextMenu=new QMenu(this);
ContextMenu->addAction(getIcon("restore"),"Restore");
@ -59,7 +59,7 @@ void TrashCanDialog::resizeEvent(QResizeEvent* event){
QDialog::resizeEvent(event);
}
void TrashCanDialog::OnItemDoubleClicked(QTreeWidgetItem* item, int column){
void TrashCanDialog::OnItemDoubleClicked(QTreeWidgetItem* item){
SelectedEntry=Entries[item->data(0,Qt::UserRole).toInt()];
accept();
}

@ -41,7 +41,7 @@ class TrashCanDialog:public QDialog, public Ui_TrashCanDialog{
virtual void resizeEvent(QResizeEvent *);
private slots:
void OnItemDoubleClicked(QTreeWidgetItem*,int);
void OnItemDoubleClicked(QTreeWidgetItem*);
void OnContextMenu(const QPoint&);

@ -26,7 +26,7 @@
QFile* ExporterBase::openFile(QWidget* parent, QString id, QStringList Filters){
QString filename=KpxFileDialogs::saveFile(parent,id,tr("Import File..."),Filters);
if(filename==QString())return NULL;
if(filename.isEmpty())return NULL;
QFile* file=new QFile(filename);
if(!file->open(QIODevice::ReadWrite|QIODevice::Truncate)){
QMessageBox::critical(parent,tr("Export Failed"),decodeFileError(file->error()));

@ -34,6 +34,8 @@ class IExport{
};
class ExporterBase:public QObject{
Q_OBJECT
protected:
virtual QFile* openFile(QWidget* GuiParent,QString id,QStringList Filter);
};

@ -21,14 +21,16 @@
#ifndef _EXPORT_KPX_XML_H_
#define _EXPORT_KPX_XML_H_
#include <QObject>
#include <QDomElement>
#include "Export.h"
class Export_KeePassX_Xml:public IExport, public ExporterBase{
class Export_KeePassX_Xml:public ExporterBase, public IExport{
Q_OBJECT
public:
virtual bool exportDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString identifier(){return "EXPORT_KEEPASSX_XML";}
virtual QString title(){return "KeePassX XML File";}
virtual QString title(){return tr("KeePassX XML File");}
private:
void addGroup(IGroupHandle* group,QDomElement& parent,QDomDocument& doc);
void addEntry(IEntryHandle* group,QDomElement& parent,QDomDocument& doc);

@ -23,11 +23,13 @@
#include <QObject>
#include "Export.h"
class Export_Txt:public IExport, public ExporterBase{
class Export_Txt:public ExporterBase, public IExport{
Q_OBJECT
public:
virtual bool exportDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString identifier(){return "e_txt";}
virtual QString title(){return "Text File";}
virtual QString title(){return tr("Text File");}
};
#endif

@ -6,7 +6,7 @@
<x>0</x>
<y>0</y>
<width>419</width>
<height>268</height>
<height>305</height>
</rect>
</property>
<property name="sizePolicy" >
@ -18,13 +18,13 @@
<property name="minimumSize" >
<size>
<width>419</width>
<height>268</height>
<height>305</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>419</width>
<height>268</height>
<height>309</height>
</size>
</property>
<property name="windowTitle" >
@ -65,7 +65,7 @@
<item>
<widget class="QTabWidget" name="tabWidget" >
<property name="currentIndex" >
<number>0</number>
<number>3</number>
</property>
<widget class="QWidget" name="tab" >
<attribute name="title" >
@ -167,9 +167,6 @@
</item>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>12</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
@ -183,7 +180,7 @@
<number>0</number>
</property>
<item>
<widget class="LinkLabel" name="label_2" >
<widget class="LinkLabel" name="label_5" >
<property name="text" >
<string>http://keepassx.sourceforge.net</string>
</property>
@ -303,6 +300,13 @@ General Public License (GPL) version 2.</string>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />

@ -0,0 +1,81 @@
<ui version="4.0" >
<class>AutoTypeDlg</class>
<widget class="QWidget" name="AutoTypeDlg" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>502</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>KeePassX - Auto-Type</string>
</property>
<layout class="QVBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>481</width>
<height>50</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Click on an entry to auto-type it.</string>
</property>
</widget>
</item>
<item>
<widget class="QTreeWidget" name="entryList" >
<property name="cursor" stdset="0" >
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="rootIsDecorated" >
<bool>false</bool>
</property>
<property name="itemsExpandable" >
<bool>false</bool>
</property>
<property name="allColumnsShowFocus" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>Group</string>
</property>
</column>
<column>
<property name="text" >
<string>Title</string>
</property>
</column>
<column>
<property name="text" >
<string>Username</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -13,12 +13,21 @@
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<widget class="QTabWidget" name="TabWidget" >
<property name="currentIndex" >
@ -29,20 +38,38 @@
<string>Rich Text Editor</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<widget class="QToolButton" name="BtnBold" >
<property name="toolTip" >
@ -291,12 +318,21 @@
<string>HTML</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<widget class="QTextEdit" name="HtmlEdit" >
<property name="acceptRichText" >
@ -309,57 +345,11 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
</property>
<item>
<widget class="QPushButton" name="ButtonRestore" >
<property name="text" >
<string>Restore Default</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="ButtonSave" >
<property name="text" >
<string>Save</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ButtonCancel" >
<property name="text" >
<string>Cancel</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>

@ -1,139 +1,113 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>dbsettingdlg_base</class>
<widget class="QDialog" name="DatabaseSettingsDlg" >
<ui version="4.0" >
<class>DatabaseSettingsDlg</class>
<widget class="QDialog" name="DatabaseSettingsDlg" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>440</width>
<height>213</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>440</width>
<height>213</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>440</width>
<height>213</height>
</size>
</property>
<property name="windowTitle" >
<string>Database Settings</string>
</property>
<widget class="QGroupBox" name="groupBox1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>60</y>
<width>420</width>
<height>110</height>
</rect>
</property>
<property name="title" >
<string>Encryption</string>
</property>
<widget class="QLabel" name="textLabel2" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>440</width>
<height>213</height>
</rect>
<rect>
<x>10</x>
<y>30</y>
<width>90</width>
<height>20</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="text" >
<string>Algorithm:</string>
</property>
<property name="minimumSize" >
<size>
<width>440</width>
<height>213</height>
</size>
</widget>
<widget class="QComboBox" name="ComboAlgo" >
<property name="geometry" >
<rect>
<x>109</x>
<y>30</y>
<width>300</width>
<height>21</height>
</rect>
</property>
<property name="maximumSize" >
<size>
<width>440</width>
<height>213</height>
</size>
</widget>
<widget class="QLineEdit" name="EditRounds" >
<property name="geometry" >
<rect>
<x>180</x>
<y>70</y>
<width>230</width>
<height>21</height>
</rect>
</property>
<property name="windowTitle" >
<string>Database Settings</string>
</widget>
<widget class="QLabel" name="textLabel3" >
<property name="geometry" >
<rect>
<x>10</x>
<y>70</y>
<width>150</width>
<height>20</height>
</rect>
</property>
<widget class="QGroupBox" name="groupBox1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>60</y>
<width>420</width>
<height>110</height>
</rect>
</property>
<property name="title" >
<string>Encryption</string>
</property>
<widget class="QLabel" name="textLabel2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>30</y>
<width>90</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Algorithm:</string>
</property>
</widget>
<widget class="QComboBox" name="ComboAlgo" >
<property name="geometry" >
<rect>
<x>109</x>
<y>30</y>
<width>300</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="EditRounds" >
<property name="geometry" >
<rect>
<x>180</x>
<y>70</y>
<width>230</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="textLabel3" >
<property name="geometry" >
<rect>
<x>10</x>
<y>70</y>
<width>150</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Encryption Rounds:</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="ButtonOK" >
<property name="geometry" >
<rect>
<x>210</x>
<y>180</y>
<width>102</width>
<height>23</height>
</rect>
</property>
<property name="text" >
<string>O&amp;K</string>
</property>
<property name="shortcut" >
<string>Ctrl+K</string>
</property>
</widget>
<widget class="QPushButton" name="ButtonCancel" >
<property name="geometry" >
<rect>
<x>320</x>
<y>180</y>
<width>102</width>
<height>23</height>
</rect>
</property>
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Ctrl+C</string>
</property>
</widget>
<property name="text" >
<string>Encryption Rounds:</string>
</property>
</widget>
</widget>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="geometry" >
<rect>
<x>12</x>
<y>180</y>
<width>411</width>
<height>27</height>
</rect>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>ComboAlgo</tabstop>
<tabstop>EditRounds</tabstop>
<tabstop>ButtonOK</tabstop>
<tabstop>ButtonCancel</tabstop>
<tabstop>pushButton1</tabstop>
</tabstops>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>ComboAlgo</tabstop>
<tabstop>EditRounds</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

@ -1,7 +1,5 @@
<ui version="4.0" >
<author>Tarek Saidi</author>
<comment></comment>
<exportmacro></exportmacro>
<class>EditGroupDialog</class>
<widget class="QDialog" name="EditGroupDialog" >
<property name="geometry" >
@ -13,9 +11,7 @@
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -36,18 +32,39 @@
<string>Group Properties</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="0" >
@ -106,47 +123,11 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>121</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="ButtonOK" >
<property name="text" >
<string>O&amp;K</string>
</property>
<property name="shortcut" >
<string>Alt+K</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ButtonCancel" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Alt+C</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
@ -155,8 +136,6 @@
<tabstops>
<tabstop>EditTitle</tabstop>
<tabstop>ComboIconPicker</tabstop>
<tabstop>ButtonOK</tabstop>
<tabstop>ButtonCancel</tabstop>
</tabstops>
<resources/>
<connections/>

@ -34,82 +34,90 @@
<number>9</number>
</property>
<item>
<widget class="QSplitter" name="VSplitter" >
<widget class="QSplitter" name="VSplitter" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<widget class="KeepassGroupView" name="GroupView" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>30</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="acceptDrops" >
<bool>true</bool>
</property>
<property name="showDropIndicator" stdset="0" >
<bool>true</bool>
</property>
<property name="dragEnabled" >
<bool>false</bool>
</property>
<column>
<property name="text" >
<string>Groups</string>
</property>
</column>
</widget>
<widget class="QSplitter" name="HSplitter" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>70</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
<enum>Qt::Vertical</enum>
</property>
<widget class="KeepassGroupView" name="GroupView" >
<widget class="KeepassEntryView" name="EntryView" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>30</horstretch>
<verstretch>0</verstretch>
<horstretch>0</horstretch>
<verstretch>70</verstretch>
</sizepolicy>
</property>
<property name="acceptDrops" >
<bool>true</bool>
</property>
<property name="showDropIndicator" stdset="0" >
<bool>true</bool>
<property name="selectionMode" >
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="dragEnabled" >
<property name="rootIsDecorated" >
<bool>false</bool>
</property>
</widget>
<widget class="QSplitter" name="HSplitter" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>70</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
<property name="sortingEnabled" >
<bool>true</bool>
</property>
<widget class="KeepassEntryView" name="EntryView" >
</widget>
<widget class="QTextBrowser" name="DetailView" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>70</verstretch>
<verstretch>30</verstretch>
</sizepolicy>
</property>
<property name="selectionMode" >
<enum>QAbstractItemView::ExtendedSelection</enum>
<property name="minimumSize" >
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="rootIsDecorated" >
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="openLinks" >
<bool>false</bool>
</property>
</widget>
<widget class="QTextBrowser" name="DetailView" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>30</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="openLinks" >
<bool>false</bool>
</property>
</widget>
</widget>
</widget>
</item>
</layout>
</widget>
@ -144,14 +152,14 @@
<string>&amp;Import from...</string>
</property>
</widget>
<widget class="QMenu" name="menuBookmarks" >
<widget class="QMenu" name="menuBookmarks" >
<property name="title" >
<string>Bookmarks</string>
</property>
</widget>
<addaction name="FileNewAction" />
<addaction name="FileOpenAction" />
<addaction name="menuBookmarks" />
<addaction name="menuBookmarks" />
<addaction name="FileCloseAction" />
<addaction name="separator" />
<addaction name="FileSaveAction" />
@ -279,9 +287,9 @@
</property>
</action>
<action name="FileUnLockWorkspaceAction" >
<property name="text" >
<string>&amp;Lock Workspace</string>
</property>
<property name="text" >
<string>&amp;Lock Workspace</string>
</property>
</action>
<action name="FileExitAction" >
<property name="text" >
@ -479,6 +487,9 @@
<property name="text" >
<string>&amp;KeePassX Handbook...</string>
</property>
<property name="visible" >
<bool>false</bool>
</property>
</action>
<action name="HideSearchResultsAction" >
<property name="text" >
@ -554,6 +565,9 @@
<property name="text" >
<string>Recycle Bin...</string>
</property>
<property name="visible" >
<bool>false</bool>
</property>
</action>
<action name="AddBookmarkAction" >
<property name="text" >

@ -6,7 +6,7 @@
<x>0</x>
<y>0</y>
<width>578</width>
<height>275</height>
<height>280</height>
</rect>
</property>
<property name="sizePolicy" >
@ -18,13 +18,13 @@
<property name="minimumSize" >
<size>
<width>578</width>
<height>275</height>
<height>280</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>578</width>
<height>275</height>
<height>280</height>
</size>
</property>
<property name="windowTitle" >
@ -306,57 +306,11 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>351</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="ButtonOK" >
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ButtonCancel" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ButtonExit" >
<property name="text" >
<string>Exit</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
@ -367,9 +321,6 @@
<tabstop>Combo_Dirs</tabstop>
<tabstop>ButtonBrowse</tabstop>
<tabstop>CheckBox_Both</tabstop>
<tabstop>ButtonOK</tabstop>
<tabstop>ButtonCancel</tabstop>
<tabstop>ButtonExit</tabstop>
<tabstop>Button_Bookmarks</tabstop>
<tabstop>ButtonChangeEchoMode</tabstop>
</tabstops>

@ -10,9 +10,7 @@
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -33,12 +31,21 @@
<string>Search...</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<spacer>
<property name="orientation" >
@ -57,10 +64,22 @@
</item>
<item>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="spacing" >
<property name="horizontalSpacing" >
<number>4</number>
</property>
<property name="verticalSpacing" >
<number>4</number>
</property>
<item row="1" column="0" >
@ -85,10 +104,22 @@
<string>Include:</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="1" >
@ -156,10 +187,19 @@
</item>
<item row="1" column="1" >
<layout class="QVBoxLayout" >
<property name="margin" >
<property name="spacing" >
<number>0</number>
</property>
<property name="spacing" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
@ -217,52 +257,11 @@
</spacer>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Close</set>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="Button_Search" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Search</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Button_Close" >
<property name="text" >
<string>Clo&amp;se</string>
</property>
<property name="shortcut" >
<string>Alt+S</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
@ -277,8 +276,6 @@
<tabstop>checkBox_Comment</tabstop>
<tabstop>checkBox_URL</tabstop>
<tabstop>checkBox_Attachment</tabstop>
<tabstop>Button_Search</tabstop>
<tabstop>Button_Close</tabstop>
</tabstops>
<resources/>
<connections/>

@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>SelectIconDlg</class>
<widget class="QDialog" name="SelectIconDlg" >
<property name="geometry" >
@ -9,13 +6,11 @@
<x>0</x>
<y>0</y>
<width>478</width>
<height>280</height>
<height>284</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -23,124 +18,47 @@
<property name="windowTitle" >
<string>Icon Selection</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
<layout class="QVBoxLayout" >
<item>
<widget class="QListWidget" name="List" >
<property name="iconSize" >
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="spacing" >
<number>6</number>
<property name="movement" >
<enum>QListView::Static</enum>
</property>
<item row="1" column="0" >
<widget class="QPushButton" name="Button_AddIcon" >
<property name="text" >
<string>Add Custom Icon...</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QPushButton" name="Button_PickIcon" >
<property name="text" >
<string>Pick</string>
</property>
</widget>
</item>
<item row="1" column="3" >
<widget class="QPushButton" name="Button_Cancel" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" colspan="4" >
<widget class="QListWidget" name="List" >
<property name="iconSize" >
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="movement" >
<enum>QListView::Static</enum>
</property>
<property name="flow" >
<enum>QListView::LeftToRight</enum>
</property>
<property name="isWrapping" stdset="0" >
<bool>true</bool>
</property>
<property name="resizeMode" >
<enum>QListView::Fixed</enum>
</property>
<property name="gridSize" >
<size>
<width>32</width>
<height>44</height>
</size>
</property>
<property name="viewMode" >
<enum>QListView::IconMode</enum>
</property>
</widget>
</item>
</layout>
<property name="flow" >
<enum>QListView::LeftToRight</enum>
</property>
<property name="isWrapping" stdset="0" >
<bool>true</bool>
</property>
<property name="resizeMode" >
<enum>QListView::Fixed</enum>
</property>
<property name="gridSize" >
<size>
<width>32</width>
<height>44</height>
</size>
</property>
<property name="viewMode" >
<enum>QListView::IconMode</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="ButtonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel</set>
</property>
</widget>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>Button_PickIcon</sender>
<signal>clicked()</signal>
<receiver>SelectIconDlg</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>Button_Cancel</sender>
<signal>clicked()</signal>
<receiver>SelectIconDlg</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>

@ -6,19 +6,25 @@
<x>0</x>
<y>0</y>
<width>571</width>
<height>420</height>
<height>440</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>571</width>
<height>420</height>
<height>440</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>571</width>
<height>420</height>
<height>441</height>
</size>
</property>
<property name="windowTitle" >
@ -60,7 +66,7 @@
</spacer>
</item>
<item>
<widget class="QTabWidget" name="tabWidget4" >
<widget class="QTabWidget" name="tabWidgetSettings" >
<property name="tabPosition" >
<enum>QTabWidget::North</enum>
</property>
@ -70,7 +76,7 @@
<property name="currentIndex" >
<number>0</number>
</property>
<widget class="QWidget" name="tab" >
<widget class="QWidget" name="TabGeneral" >
<property name="whatsThis" >
<string>The integration plugins provide features like usage of the native file dialogs and message boxes of the particular desktop environments.</string>
</property>
@ -79,46 +85,14 @@
</attribute>
<layout class="QVBoxLayout" >
<item>
<widget class="QCheckBox" name="checkBox_ShowSysTrayIcon" >
<widget class="QCheckBox" name="CheckBox_ShowSysTrayIcon" >
<property name="text" >
<string>Show system tray icon</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_MinimizeToTray" >
<property name="text" >
<string>Minimize to tray when clicking the main window's close button</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="CheckBox_OpenLast" >
<property name="text" >
<string>Remember last opened file</string>
</property>
<property name="shortcut" >
<string>Alt+ร–</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
@ -129,32 +103,156 @@
</property>
<property name="sizeHint" >
<size>
<width>10</width>
<height>20</height>
<width>25</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_RememberLastKey" >
<widget class="QCheckBox" name="CheckBox_MinimizeTray" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Remember last key type and location</string>
<string>Minimize to tray instead of taskbar</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
<width>25</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_CloseToTray" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Minimize to tray when clicking the main window's close button</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<item>
<widget class="QCheckBox" name="CheckBox_OpenLast" >
<property name="text" >
<string>Remember last opened file</string>
</property>
<property name="shortcut" >
<string>Alt+ร–</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>25</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_RememberLastKey" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Remember last key type and location</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>25</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_StartMinimized" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Start minimized</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>25</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_StartLocked" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Start locked</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
@ -226,88 +324,6 @@
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Group tree at start-up:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeRestore" >
<property name="text" >
<string>Restore last state</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeExpand" >
<property name="text" >
<string>Expand all items</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeDoNothing" >
<property name="text" >
<string>Do not expand any item</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
@ -626,13 +642,6 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox" >
<property name="text" >
<string>Unified Title and Toolbar</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
@ -672,6 +681,73 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<layout class="QGridLayout" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Group tree at start-up:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeRestore" >
<property name="text" >
<string>Restore last state</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeExpand" >
<property name="text" >
<string>Expand all items</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QRadioButton" name="Radio_GroupTreeDoNothing" >
<property name="text" >
<string>Do not expand any item</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
@ -687,7 +763,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3" >
<widget class="QWidget" name="tabSecurity" >
<attribute name="title" >
<string>Security</string>
</attribute>
@ -815,6 +891,13 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_LockMinimize" >
<property name="text" >
<string>Lock workspace when minimizing the main window</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
@ -830,7 +913,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="Seite" >
<widget class="QWidget" name="tabFeatures" >
<attribute name="title" >
<string>Features</string>
</attribute>
@ -867,7 +950,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2" >
<widget class="QWidget" name="tabIntegration" >
<attribute name="title" >
<string>Desktop Integration</string>
</attribute>
@ -1015,7 +1098,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab" >
<widget class="QWidget" name="TabAdvanced" >
<attribute name="title" >
<string>Advanced</string>
</attribute>
@ -1036,7 +1119,7 @@
<number>9</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<widget class="QGroupBox" name="Box_AutoType" >
<property name="title" >
<string>Auto-Type Fine Tuning</string>
</property>
@ -1122,82 +1205,86 @@
</widget>
</item>
<item>
<layout class="QGridLayout" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
<widget class="QGroupBox" name="Box_BrowserCmd" >
<property name="title" >
<string>Custom Browser Command</string>
</property>
<property name="verticalSpacing" >
<number>6</number>
<property name="checkable" >
<bool>true</bool>
</property>
<item row="1" column="2" >
<widget class="QPushButton" name="Button_MountDirBrowse" >
<property name="minimumSize" >
<size>
<width>0</width>
<height>23</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QLineEdit" name="Edit_BrowserCmd" />
</item>
<item>
<widget class="QPushButton" name="Button_BrowserCmdBrowse" >
<property name="text" >
<string>Browse</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Browse...</string>
<string>Media Root:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1" >
<item>
<widget class="QLineEdit" name="Edit_MountDir" >
<property name="whatsThis" >
<string>The directory where storage devices like CDs and memory sticks are normally mounted.</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<item>
<widget class="QPushButton" name="Button_MountDirBrowse" >
<property name="text" >
<string>Media Root:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<string>Browse...</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
</layout>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_SaveRelativePaths" >
<property name="whatsThis" >
<string>Enable this if you want to use your bookmarks and the last opened file independet from their absolute paths. This is especially useful when using KeePassX portably and therefore with changing mount points in the file system.</string>
</property>
<property name="text" >
<string>Save relative paths (bookmarks and last file)</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="Label_GlobalShortcut" >
<property name="text" >
<string>Browser Command:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<string>Global Auto-Type Shortcut:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="Edit_BrowserCmd" />
<item>
<widget class="ShortcutWidget" name="Edit_GlobalShortcut" >
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="3" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
@ -1206,28 +1293,12 @@
</property>
</spacer>
</item>
<item row="0" column="2" colspan="2" >
<widget class="QCheckBox" name="CheckBox_BrowserDefault" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>System Default</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="CheckBox_SaveRelativePaths" >
<property name="whatsThis" >
<string>Enable this if you want to use your bookmarks and the last opened file independet from their absolute paths. This is especially useful when using KeePassX portably and therefore with changing mount points in the file system.</string>
</property>
<widget class="QCheckBox" name="CheckBox_EntryTitlesMatch" >
<property name="text" >
<string>Save relative paths (bookmarks and last file)</string>
<string>Use entry titles to match the window for Global Auto-Type</string>
</property>
</widget>
</item>
@ -1261,11 +1332,48 @@
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>ShortcutWidget</class>
<extends>QLineEdit</extends>
<header>lib/ShortcutWidget.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>tabWidget4</tabstop>
<tabstop>tabWidgetSettings</tabstop>
<tabstop>CheckBox_ShowSysTrayIcon</tabstop>
<tabstop>CheckBox_MinimizeTray</tabstop>
<tabstop>CheckBox_CloseToTray</tabstop>
<tabstop>CheckBox_OpenLast</tabstop>
<tabstop>CheckBox_RememberLastKey</tabstop>
<tabstop>CheckBox_StartMinimized</tabstop>
<tabstop>CheckBox_StartLocked</tabstop>
<tabstop>checkBox_SaveFileDlgHistory</tabstop>
<tabstop>Button_ClearFileDlgHistory</tabstop>
<tabstop>checkBox_AskBeforeDelete</tabstop>
<tabstop>ButtonColor1</tabstop>
<tabstop>ButtonTextColor</tabstop>
<tabstop>ButtonColor2</tabstop>
<tabstop>ButtonTextColor</tabstop>
<tabstop>CheckBox_AlternatingRowColors</tabstop>
<tabstop>Button_CustomizeEntryDetails</tabstop>
<tabstop>Radio_GroupTreeRestore</tabstop>
<tabstop>Radio_GroupTreeExpand</tabstop>
<tabstop>Radio_GroupTreeDoNothing</tabstop>
<tabstop>CheckBox_ShowPasswords</tabstop>
<tabstop>CheckBox_ShowPasswords_PasswordDlg</tabstop>
<tabstop>SpinBox_ClipboardTime</tabstop>
<tabstop>CheckBox_LockMinimize</tabstop>
<tabstop>CheckBox_FeatureBookmarks</tabstop>
<tabstop>Radio_IntPlugin_None</tabstop>
<tabstop>Radio_IntPlugin_Gnome</tabstop>
<tabstop>Radio_IntPlugin_Kde</tabstop>
<tabstop>IntPlugin_Button_Config</tabstop>
<tabstop>SpinBox_AutoTypePreGap</tabstop>
<tabstop>SpinBox_AutoTypeKeyStrokeDelay</tabstop>
<tabstop>CheckBox_SaveRelativePaths</tabstop>
<tabstop>Edit_GlobalShortcut</tabstop>
<tabstop>CheckBox_EntryTitlesMatch</tabstop>
<tabstop>DialogButtons</tabstop>
</tabstops>
<resources/>
<connections/>

@ -34,6 +34,8 @@ class IImport{
};
class ImporterBase:public QObject{
Q_OBJECT
protected:
virtual QFile* openFile(QWidget* GuiParent,QString id,QStringList Filter);
virtual QString getPassword(QWidget* GuiParent);

@ -25,6 +25,8 @@
#include "Database.h"
class Import_GnuKeyRing:public QObject,public IImport{
Q_OBJECT
public:
virtual QString importDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString name(){return "GnuKeyRing";}

@ -23,7 +23,9 @@
#include "Database.h"
#include "Import.h"
class Import_KWalletXml:public IImport, public ImporterBase{
class Import_KWalletXml:public ImporterBase, public IImport{
Q_OBJECT
public:
virtual bool importDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString identifier(){return "KWalletXml";}

@ -47,7 +47,7 @@ bool Import_KeePassX_Xml::importDatabase(QWidget* Parent, IDatabase* database){
QStringList GroupNames;
for(int i=0;i<TopLevelGroupNodes.count();i++){
if(TopLevelGroupNodes.at(i).toElement().tagName()!="group"){
qWarning("Import_KeePassX_Xml: Error: Unknow tag '%s'",TopLevelGroupNodes.at(i).toElement().tagName());
qWarning("Import_KeePassX_Xml: Error: Unknow tag '%s'",TopLevelGroupNodes.at(i).toElement().tagName().toUtf8().constData());
QMessageBox::critical(GuiParent,tr("Import Failed"),tr("Parsing error: File is no valid KeePassX XML file."));
return false;
}

@ -25,7 +25,9 @@
#include "Import.h"
class Import_KeePassX_Xml:public IImport, public ImporterBase{
class Import_KeePassX_Xml:public ImporterBase, public IImport{
Q_OBJECT
public:
virtual bool importDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString identifier(){return "KeePassX_Xml";}

@ -32,12 +32,18 @@ bool Import_PwManager::importDatabase(QWidget* GuiParent, IDatabase* db){
QFile* file=openFile(GuiParent,identifier(),QStringList()<<tr("PwManager Files (*.pwm)")<<tr("All Files (*)"));
if(!file)return false;
QString password=getPassword(GuiParent);
if(password==QString()){delete file; return false;}
if(password.isEmpty()){delete file; return false;}
char* buffer=NULL;
int offset=0;
int len=0;
if(len=file->size()) buffer=new char[len];
else {QMessageBox::critical(GuiParent,tr("Import Failed"),tr("File is empty.")); delete file; return false;}
if(len=file->size()){
buffer=new char[len];
}
else {
QMessageBox::critical(GuiParent,tr("Import Failed"),tr("File is empty."));
delete file;
return false;
}
file->read(buffer,len);
file->close();
delete file;

@ -26,7 +26,9 @@
#include "Import.h"
class Import_PwManager:public IImport, public ImporterBase{
class Import_PwManager:public ImporterBase, public IImport{
Q_OBJECT
public:
virtual bool importDatabase(QWidget* GuiParent, IDatabase* Database);
virtual QString identifier(){return "PwManager";}

@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2005-2006 by Tarek Saidi *
* Copyright (C) 2005-2006 by Tarek Saidi, Felix Geyer *
* tarek.saidi@arcor.de *
* *
* This program is free software; you can redistribute it and/or modify *
@ -21,42 +21,30 @@
#ifndef _AUTOTYPE_H_
#define _AUTOTYPE_H_
#include <QObject>
#include <QWidget>
#include <QString>
#ifdef Q_WS_X11
#define XK_MISCELLANY
#define XK_XKB_KEYS
#define XK_3270
#include <X11/extensions/XTest.h>
#include <X11/keysymdef.h>
#include <X11/Xlib.h>
#endif
#include "Database.h"
typedef struct tKeysymMap{
quint16 keysym;
quint16 unicode;
#ifdef GLOBAL_AUTOTYPE
struct Shortcut{
bool ctrl, shift, alt, altgr, win;
quint32 key;
};
class AutoType:public QObject{
public:
static QWidget* MainWin;
static void perform(IEntryHandle* entry,QString& errors);
private:
#ifdef Q_WS_X11
static tKeysymMap KeysymMap[];
static quint16 getKeysym(const QChar& unicode);
static int getModifiers(Display*,KeySym,int);
static void pressModifiers(Display*,int,bool Press=true);
static void releaseModifiers(Display*,int);
static void templateToKeysyms(const QString& Template, QList<quint16>& KeySymList,IEntryHandle* entry);
static void stringToKeysyms(const QString& string,QList<quint16>& KeySymList);
#endif
#ifdef AUTOTYPE
class KeepassMainWindow;
class AutoType{
public:
static KeepassMainWindow* MainWin;
static void perform(IEntryHandle* entry, QString& err,bool hideWindow=true,int nr=0);
#ifdef GLOBAL_AUTOTYPE
static Shortcut shortcut;
static void performGlobal();
static bool registerGlobalShortcut(const Shortcut& s);
static void unregisterGlobalShortcut();
#endif // GLOBAL_AUTOTYPE
};
#endif // AUTOTYPE
#endif

File diff suppressed because it is too large Load Diff

@ -41,6 +41,7 @@ QList<EntryViewItem*>* pItems;
KeepassEntryView* pEntryView;
KeepassEntryView::KeepassEntryView(QWidget* parent):QTreeWidget(parent){
ViewMode=Normal;
AutoResizeColumns=true;
header()->setResizeMode(QHeaderView::Interactive);
header()->setStretchLastSection(false);
@ -51,6 +52,7 @@ KeepassEntryView::KeepassEntryView(QWidget* parent):QTreeWidget(parent){
ColumnOrder=config->columnOrder();
updateColumns();
header()->setSortIndicator(config->columnSort(), config->columnSortOrder());
connect(header(),SIGNAL(sectionResized(int,int,int)),this,SLOT(OnColumnResized(int,int,int)));
connect(this,SIGNAL(itemSelectionChanged()),this,SLOT(OnItemsChanged()));
@ -69,6 +71,8 @@ KeepassEntryView::~KeepassEntryView(){
config->setColumnSizes(ColumnSizes);
config->setColumns(Columns);
config->setColumnOrder(ColumnOrder);
config->setColumnSort(header()->sortIndicatorSection());
config->setColumnSortOrder(header()->sortIndicatorOrder());
}
void KeepassEntryView::OnGroupChanged(IGroupHandle* group){
@ -106,14 +110,11 @@ bool sortSearchResultsLessThan(const IEntryHandle* a, const IEntryHandle* b){
void KeepassEntryView::OnHeaderSectionClicked(int index){
if(header()->isSortIndicatorShown() && header()->sortIndicatorSection()==index){
if(header()->sortIndicatorSection()==index){
header()->setSortIndicator(index,header()->sortIndicatorOrder() ? Qt::DescendingOrder : Qt::AscendingOrder);
sortItems(index,header()->sortIndicatorOrder());
}
else{
header()->setSortIndicator(index,Qt::AscendingOrder);
header()->setSortIndicatorShown(true);
sortItems(index,Qt::AscendingOrder);
}
if(ViewMode==Normal){
@ -272,7 +273,7 @@ void KeepassEntryView::OnEditEntry(){
void KeepassEntryView::OnEditOpenUrl(){
if (selectedItems().size() == 0) return;
openBrowser(((EntryViewItem*)selectedItems().first())->text(logicalColIndex(2)));
openBrowser( ((EntryViewItem*)selectedItems().first())->EntryHandle );
}
void KeepassEntryView::OnUsernameToClipboard(){
@ -360,7 +361,6 @@ void KeepassEntryView::showGroup(IGroupHandle* group){
}
void KeepassEntryView::createItems(QList<IEntryHandle*>& entries){
header()->setSortIndicatorShown(false);
for(int i=0;i<entries.size();i++){
if(!entries[i]->isValid())continue;
EntryViewItem* item=new EntryViewItem(this);
@ -480,6 +480,7 @@ int KeepassEntryView::logicalColIndex(int LstIndex){
if(i==LstIndex)return c;
}
Q_ASSERT(false);
return -1;
}
void KeepassEntryView::resizeColumns(){
@ -514,8 +515,8 @@ void KeepassEntryView::resizeColumns(){
}
int KeepassEntryView::columnListIndex(int LogicalIndex){
int c=-1; int i=0;
for(i;i<NUM_COLUMNS;i++){
int c=-1; int i;
for(i=0;i<NUM_COLUMNS;i++){
if(Columns.at(i))c++;
if(i==10 && Columns.at(10) && ViewMode!=ShowSearchResults)c--;
if(c==LogicalIndex)break;
@ -574,8 +575,7 @@ void KeepassEntryView::mouseMoveEvent(QMouseEvent *event){
mimeData->setData("text/plain;charset=UTF-8",DragItems.first()->text(0).toUtf8());
mimeData->setData("application/x-keepassx-entry",QByteArray((char*)&pDragItems,sizeof(void*)));
drag->setMimeData(mimeData);
drag->setPixmap(DragPixmap);
drag->start();
drag->exec(Qt::MoveAction);
}
@ -591,11 +591,13 @@ void KeepassEntryView::removeDragItems(){
}
}
#ifdef AUTOTYPE
void KeepassEntryView::OnAutoType(){
if (selectedItems().size() == 0) return;
QString error;
AutoType::perform(((EntryViewItem*)selectedItems().first())->EntryHandle,error);
}
#endif
void KeepassEntryView::paintEvent(QPaintEvent * event){
QTreeWidget::paintEvent(event);
@ -653,8 +655,8 @@ bool EntryViewItem::operator<(const QTreeWidgetItem& other)const{
void KeepassEntryView::setCurrentEntry(IEntryHandle* entry){
bool found=false;
int i=0;
for(i;i<Items.size();i++)
int i;
for(i=0;i<Items.size();i++)
if(Items.at(i)->EntryHandle==entry){found=true; break;}
if(!found)return;
setCurrentItem(Items.at(i));

@ -65,7 +65,6 @@ class KeepassEntryView:public QTreeWidget{
bool AutoResizeColumns;
QPoint DragStartPos;
QList<QTreeWidgetItem*> DragItems;
QPixmap DragPixmap;
IGroupHandle* CurrentGroup;
enum EntryViewMode {Normal, ShowSearchResults};
EntryViewMode ViewMode;
@ -94,7 +93,9 @@ class KeepassEntryView:public QTreeWidget{
void OnCloneEntry();
void OnDeleteEntry();
void OnSaveAttachment();
#ifdef AUTOTYPE
void OnAutoType();
#endif
void removeDragItems();
void OnColumnMoved(int LogIndex,int OldVisIndex,int NewVisIndex);
void OnEditOpenUrl();

@ -81,6 +81,7 @@ class KpxFileDialogs{
class QtStandardFileDialogs:public QObject,public IFileDialog{
Q_OBJECT
Q_INTERFACES(IFileDialog);
public:
QString openExistingFileDialog(QWidget* parent,QString title,QString dir,QStringList Filters,int SelectedFilter);
QStringList openExistingFilesDialog(QWidget* parent,QString title,QString dir,QStringList Filters,int SelectedFilter);

@ -41,12 +41,10 @@
#define INSERT_AREA_WIDTH 4
KeepassGroupView::KeepassGroupView(QWidget* parent):QTreeWidget(parent){
db=NULL;
setHeaderLabels(QStringList()<<tr("Groups"));
ContextMenu=new QMenu(this);
ContextMenuSearchGroup=new QMenu(this);
connect(this,SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),this,SLOT(OnCurrentGroupChanged(QTreeWidgetItem*,QTreeWidgetItem*)));
connect(this,SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),this,SLOT(OnCurrentGroupChanged(QTreeWidgetItem*)));
connect(this,SIGNAL(itemExpanded(QTreeWidgetItem*)),this,SLOT(OnItemExpanded(QTreeWidgetItem*)));
connect(this,SIGNAL(itemCollapsed(QTreeWidgetItem*)),this,SLOT(OnItemCollapsed(QTreeWidgetItem*)));
}
@ -167,7 +165,7 @@ void KeepassGroupView::contextMenuEvent(QContextMenuEvent* e){
ContextMenu->popup(e->globalPos());
}
void KeepassGroupView::OnCurrentGroupChanged(QTreeWidgetItem* cur,QTreeWidgetItem* prev){
void KeepassGroupView::OnCurrentGroupChanged(QTreeWidgetItem* cur){
if(cur){
if(cur==SearchResultItem)
emit searchResultsSelected();
@ -181,8 +179,8 @@ void KeepassGroupView::OnCurrentGroupChanged(QTreeWidgetItem* cur,QTreeWidgetIte
void KeepassGroupView::setCurrentGroup(IGroupHandle* group){
bool found=false;
int i=0;
for(i;i<Items.size();i++)
int i;
for(i=0;i<Items.size();i++)
if(Items[i]->GroupHandle==group){found=true; break;}
if(!found)return;
setCurrentItem(Items[i]);
@ -194,13 +192,13 @@ void KeepassGroupView::dragEnterEvent ( QDragEnterEvent * event ){
if(event->mimeData()->hasFormat("application/x-keepassx-group")){
DragType=GroupDrag;
event->accept();
event->acceptProposedAction();
return;
}
if(event->mimeData()->hasFormat("application/x-keepassx-entry")){
DragType=EntryDrag;
memcpy(&EntryDragItems,event->mimeData()->data("application/x-keepassx-entry").data(),sizeof(void*));
event->accept();
event->acceptProposedAction();
return;
}
@ -371,7 +369,7 @@ void KeepassGroupView::entryDragMoveEvent( QDragMoveEvent * event ){
Item->setForeground(0,QBrush(QApplication::palette().color(QPalette::HighlightedText)));
LastHoverItem=Item;
}
event->accept();
event->acceptProposedAction();
return;
}
@ -393,7 +391,7 @@ void KeepassGroupView::dragMoveEvent( QDragMoveEvent * event ){
InsLinePos=-1;
viewport()->update(QRegion(0,RemoveLine-2,viewport()->width(),4));
}
event->accept();
event->acceptProposedAction();
return;
}
if(Item==DragItem || Item==SearchResultItem){
@ -435,7 +433,7 @@ void KeepassGroupView::dragMoveEvent( QDragMoveEvent * event ){
InsLineStart=ItemRect.x();
viewport()->update(QRegion(0,InsLinePos-2,viewport()->width(),4));
}
event->accept();
event->acceptProposedAction();
return;
}
@ -486,7 +484,7 @@ void KeepassGroupView::mouseMoveEvent(QMouseEvent *event){
mimeData->setData("application/x-keepassx-group",QByteArray());
drag->setMimeData(mimeData);
Qt::DropAction dropAction = drag->start(Qt::MoveAction);
drag->exec(Qt::MoveAction);
}
void KeepassGroupView::OnItemExpanded(QTreeWidgetItem* item){

@ -62,7 +62,7 @@ class KeepassGroupView:public QTreeWidget{
QList<QTreeWidgetItem*>* EntryDragItems;
public slots:
void OnCurrentGroupChanged(QTreeWidgetItem*,QTreeWidgetItem*);
void OnCurrentGroupChanged(QTreeWidgetItem*);
void OnDeleteGroup();
void OnNewGroup();
void OnEditGroup();

@ -0,0 +1,899 @@
/***************************************************************************
* Copyright (C) 2005-2006 by Tarek Saidi, Felix Geyer *
* tarek.saidi@arcor.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "HelperX11.h"
#include <QX11Info>
int HelperX11::getModifiers(Display *d,KeySym keysym, int keycode){
int SymsPerKey;
KeySym* Syms=XGetKeyboardMapping(d,keycode,1,&SymsPerKey);
int c=-1;
for(int i=0;i<4;i++)
if(Syms[i]==keysym){
c=i; break;
}
Q_ASSERT(c!=-1);
XFree(Syms);
return c;
}
void HelperX11::pressModifiers(Display* d,int mods,bool press){
switch(mods){
case 0: //no modifier
break;
case 1: //Shift
XTestFakeKeyEvent(d,XKeysymToKeycode(d,XK_Shift_L),press,2);
break;
case 2: //AltGr
XTestFakeKeyEvent(d,XKeysymToKeycode(d,XK_ISO_Level3_Shift),press,2);
break;
case 3: //Shift+AltGr
XTestFakeKeyEvent(d,XKeysymToKeycode(d,XK_Shift_L),press,2);
XTestFakeKeyEvent(d,XKeysymToKeycode(d,XK_ISO_Level3_Shift),press,2);
break;
}
}
void HelperX11::releaseModifiers(Display* d,int mods){
pressModifiers(d,mods,False);
}
#ifdef GLOBAL_AUTOTYPE
int HelperX11::getShortcutModifierMask(const Shortcut& s){
int mod=0;
if (s.ctrl) mod |= ControlMask;
if (s.shift) mod |= ShiftMask;
if (s.alt) mod |= Mod1Mask;
if (s.altgr) mod |= Mod5Mask;
if (s.win) mod |= Mod4Mask;
return mod;
}
#endif
unsigned int HelperX11::keyboardModifiers(Display* d){
Window root, child;
int root_x, root_y, x, y;
unsigned int mask;
XQueryPointer(d, RootWindow(d, DefaultScreen(d)), &root, &child, &root_x, &root_y, &x, &y, &mask);
return mask;
}
void HelperX11:: startCatchErrors(){
Q_ASSERT(!catchErrors);
catchErrors = true;
pErrorOccurred = false;
oldHandler = XSetErrorHandler(x11ErrorHandler);
}
void HelperX11::stopCatchErrors(){
Q_ASSERT(catchErrors);
XSync(QX11Info::display(), false);
XSetErrorHandler(oldHandler);
catchErrors = false;
}
int HelperX11::x11ErrorHandler(Display* display, XErrorEvent* error){
Q_UNUSED(display)
Q_UNUSED(error)
if (catchErrors)
pErrorOccurred = true;
return 1;
}
int (*HelperX11::oldHandler) (Display*, XErrorEvent*) = NULL;
bool HelperX11::catchErrors = false;
bool HelperX11::pErrorOccurred = false;
const quint16 HelperX11::KeysymMap[][2] = {
{ 0x01a1, 0x0104 }, /* Aogonek ฤ„ LATIN CAPITAL LETTER A WITH OGONEK */
{ 0x01a2, 0x02d8 }, /* breve ห˜ BREVE */
{ 0x01a3, 0x0141 }, /* Lstroke ล LATIN CAPITAL LETTER L WITH STROKE */
{ 0x01a5, 0x013d }, /* Lcaron ฤฝ LATIN CAPITAL LETTER L WITH CARON */
{ 0x01a6, 0x015a }, /* Sacute ลš LATIN CAPITAL LETTER S WITH ACUTE */
{ 0x01a9, 0x0160 }, /* Scaron ล  LATIN CAPITAL LETTER S WITH CARON */
{ 0x01aa, 0x015e }, /* Scedilla ลž LATIN CAPITAL LETTER S WITH CEDILLA */
{ 0x01ab, 0x0164 }, /* Tcaron ลค LATIN CAPITAL LETTER T WITH CARON */
{ 0x01ac, 0x0179 }, /* Zacute ลน LATIN CAPITAL LETTER Z WITH ACUTE */
{ 0x01ae, 0x017d }, /* Zcaron ลฝ LATIN CAPITAL LETTER Z WITH CARON */
{ 0x01af, 0x017b }, /* Zabovedot ลป LATIN CAPITAL LETTER Z WITH DOT ABOVE */
{ 0x01b1, 0x0105 }, /* aogonek ฤ… LATIN SMALL LETTER A WITH OGONEK */
{ 0x01b2, 0x02db }, /* ogonek ห› OGONEK */
{ 0x01b3, 0x0142 }, /* lstroke ล‚ LATIN SMALL LETTER L WITH STROKE */
{ 0x01b5, 0x013e }, /* lcaron ฤพ LATIN SMALL LETTER L WITH CARON */
{ 0x01b6, 0x015b }, /* sacute ล› LATIN SMALL LETTER S WITH ACUTE */
{ 0x01b7, 0x02c7 }, /* caron ห‡ CARON */
{ 0x01b9, 0x0161 }, /* scaron ลก LATIN SMALL LETTER S WITH CARON */
{ 0x01ba, 0x015f }, /* scedilla ลŸ LATIN SMALL LETTER S WITH CEDILLA */
{ 0x01bb, 0x0165 }, /* tcaron ลฅ LATIN SMALL LETTER T WITH CARON */
{ 0x01bc, 0x017a }, /* zacute ลบ LATIN SMALL LETTER Z WITH ACUTE */
{ 0x01bd, 0x02dd }, /* doubleacute ห DOUBLE ACUTE ACCENT */
{ 0x01be, 0x017e }, /* zcaron ลพ LATIN SMALL LETTER Z WITH CARON */
{ 0x01bf, 0x017c }, /* zabovedot ลผ LATIN SMALL LETTER Z WITH DOT ABOVE */
{ 0x01c0, 0x0154 }, /* Racute ล” LATIN CAPITAL LETTER R WITH ACUTE */
{ 0x01c3, 0x0102 }, /* Abreve ฤ‚ LATIN CAPITAL LETTER A WITH BREVE */
{ 0x01c5, 0x0139 }, /* Lacute ฤน LATIN CAPITAL LETTER L WITH ACUTE */
{ 0x01c6, 0x0106 }, /* Cacute ฤ† LATIN CAPITAL LETTER C WITH ACUTE */
{ 0x01c8, 0x010c }, /* Ccaron ฤŒ LATIN CAPITAL LETTER C WITH CARON */
{ 0x01ca, 0x0118 }, /* Eogonek ฤ˜ LATIN CAPITAL LETTER E WITH OGONEK */
{ 0x01cc, 0x011a }, /* Ecaron ฤš LATIN CAPITAL LETTER E WITH CARON */
{ 0x01cf, 0x010e }, /* Dcaron ฤŽ LATIN CAPITAL LETTER D WITH CARON */
{ 0x01d0, 0x0110 }, /* Dstroke ฤ LATIN CAPITAL LETTER D WITH STROKE */
{ 0x01d1, 0x0143 }, /* Nacute ลƒ LATIN CAPITAL LETTER N WITH ACUTE */
{ 0x01d2, 0x0147 }, /* Ncaron ล‡ LATIN CAPITAL LETTER N WITH CARON */
{ 0x01d5, 0x0150 }, /* Odoubleacute ล LATIN CAPITAL LETTER O WITH DOUBLE ACUTE */
{ 0x01d8, 0x0158 }, /* Rcaron ล˜ LATIN CAPITAL LETTER R WITH CARON */
{ 0x01d9, 0x016e }, /* Uring ลฎ LATIN CAPITAL LETTER U WITH RING ABOVE */
{ 0x01db, 0x0170 }, /* Udoubleacute ลฐ LATIN CAPITAL LETTER U WITH DOUBLE ACUTE */
{ 0x01de, 0x0162 }, /* Tcedilla ลข LATIN CAPITAL LETTER T WITH CEDILLA */
{ 0x01e0, 0x0155 }, /* racute ล• LATIN SMALL LETTER R WITH ACUTE */
{ 0x01e3, 0x0103 }, /* abreve ฤƒ LATIN SMALL LETTER A WITH BREVE */
{ 0x01e5, 0x013a }, /* lacute ฤบ LATIN SMALL LETTER L WITH ACUTE */
{ 0x01e6, 0x0107 }, /* cacute ฤ‡ LATIN SMALL LETTER C WITH ACUTE */
{ 0x01e8, 0x010d }, /* ccaron ฤ LATIN SMALL LETTER C WITH CARON */
{ 0x01ea, 0x0119 }, /* eogonek ฤ™ LATIN SMALL LETTER E WITH OGONEK */
{ 0x01ec, 0x011b }, /* ecaron ฤ› LATIN SMALL LETTER E WITH CARON */
{ 0x01ef, 0x010f }, /* dcaron ฤ LATIN SMALL LETTER D WITH CARON */
{ 0x01f0, 0x0111 }, /* dstroke ฤ‘ LATIN SMALL LETTER D WITH STROKE */
{ 0x01f1, 0x0144 }, /* nacute ล„ LATIN SMALL LETTER N WITH ACUTE */
{ 0x01f2, 0x0148 }, /* ncaron ลˆ LATIN SMALL LETTER N WITH CARON */
{ 0x01f5, 0x0151 }, /* odoubleacute ล‘ LATIN SMALL LETTER O WITH DOUBLE ACUTE */
{ 0x01f8, 0x0159 }, /* rcaron ล™ LATIN SMALL LETTER R WITH CARON */
{ 0x01f9, 0x016f }, /* uring ลฏ LATIN SMALL LETTER U WITH RING ABOVE */
{ 0x01fb, 0x0171 }, /* udoubleacute ลฑ LATIN SMALL LETTER U WITH DOUBLE ACUTE */
{ 0x01fe, 0x0163 }, /* tcedilla ลฃ LATIN SMALL LETTER T WITH CEDILLA */
{ 0x01ff, 0x02d9 }, /* abovedot ห™ DOT ABOVE */
{ 0x02a1, 0x0126 }, /* Hstroke ฤฆ LATIN CAPITAL LETTER H WITH STROKE */
{ 0x02a6, 0x0124 }, /* Hcircumflex ฤค LATIN CAPITAL LETTER H WITH CIRCUMFLEX */
{ 0x02a9, 0x0130 }, /* Iabovedot ฤฐ LATIN CAPITAL LETTER I WITH DOT ABOVE */
{ 0x02ab, 0x011e }, /* Gbreve ฤž LATIN CAPITAL LETTER G WITH BREVE */
{ 0x02ac, 0x0134 }, /* Jcircumflex ฤด LATIN CAPITAL LETTER J WITH CIRCUMFLEX */
{ 0x02b1, 0x0127 }, /* hstroke ฤง LATIN SMALL LETTER H WITH STROKE */
{ 0x02b6, 0x0125 }, /* hcircumflex ฤฅ LATIN SMALL LETTER H WITH CIRCUMFLEX */
{ 0x02b9, 0x0131 }, /* idotless ฤฑ LATIN SMALL LETTER DOTLESS I */
{ 0x02bb, 0x011f }, /* gbreve ฤŸ LATIN SMALL LETTER G WITH BREVE */
{ 0x02bc, 0x0135 }, /* jcircumflex ฤต LATIN SMALL LETTER J WITH CIRCUMFLEX */
{ 0x02c5, 0x010a }, /* Cabovedot ฤŠ LATIN CAPITAL LETTER C WITH DOT ABOVE */
{ 0x02c6, 0x0108 }, /* Ccircumflex ฤˆ LATIN CAPITAL LETTER C WITH CIRCUMFLEX */
{ 0x02d5, 0x0120 }, /* Gabovedot ฤ  LATIN CAPITAL LETTER G WITH DOT ABOVE */
{ 0x02d8, 0x011c }, /* Gcircumflex ฤœ LATIN CAPITAL LETTER G WITH CIRCUMFLEX */
{ 0x02dd, 0x016c }, /* Ubreve ลฌ LATIN CAPITAL LETTER U WITH BREVE */
{ 0x02de, 0x015c }, /* Scircumflex ลœ LATIN CAPITAL LETTER S WITH CIRCUMFLEX */
{ 0x02e5, 0x010b }, /* cabovedot ฤ‹ LATIN SMALL LETTER C WITH DOT ABOVE */
{ 0x02e6, 0x0109 }, /* ccircumflex ฤ‰ LATIN SMALL LETTER C WITH CIRCUMFLEX */
{ 0x02f5, 0x0121 }, /* gabovedot ฤก LATIN SMALL LETTER G WITH DOT ABOVE */
{ 0x02f8, 0x011d }, /* gcircumflex ฤ LATIN SMALL LETTER G WITH CIRCUMFLEX */
{ 0x02fd, 0x016d }, /* ubreve ลญ LATIN SMALL LETTER U WITH BREVE */
{ 0x02fe, 0x015d }, /* scircumflex ล LATIN SMALL LETTER S WITH CIRCUMFLEX */
{ 0x03a2, 0x0138 }, /* kra ฤธ LATIN SMALL LETTER KRA */
{ 0x03a3, 0x0156 }, /* Rcedilla ล– LATIN CAPITAL LETTER R WITH CEDILLA */
{ 0x03a5, 0x0128 }, /* Itilde ฤจ LATIN CAPITAL LETTER I WITH TILDE */
{ 0x03a6, 0x013b }, /* Lcedilla ฤป LATIN CAPITAL LETTER L WITH CEDILLA */
{ 0x03aa, 0x0112 }, /* Emacron ฤ’ LATIN CAPITAL LETTER E WITH MACRON */
{ 0x03ab, 0x0122 }, /* Gcedilla ฤข LATIN CAPITAL LETTER G WITH CEDILLA */
{ 0x03ac, 0x0166 }, /* Tslash ลฆ LATIN CAPITAL LETTER T WITH STROKE */
{ 0x03b3, 0x0157 }, /* rcedilla ล— LATIN SMALL LETTER R WITH CEDILLA */
{ 0x03b5, 0x0129 }, /* itilde ฤฉ LATIN SMALL LETTER I WITH TILDE */
{ 0x03b6, 0x013c }, /* lcedilla ฤผ LATIN SMALL LETTER L WITH CEDILLA */
{ 0x03ba, 0x0113 }, /* emacron ฤ“ LATIN SMALL LETTER E WITH MACRON */
{ 0x03bb, 0x0123 }, /* gcedilla ฤฃ LATIN SMALL LETTER G WITH CEDILLA */
{ 0x03bc, 0x0167 }, /* tslash ลง LATIN SMALL LETTER T WITH STROKE */
{ 0x03bd, 0x014a }, /* ENG ลŠ LATIN CAPITAL LETTER ENG */
{ 0x03bf, 0x014b }, /* eng ล‹ LATIN SMALL LETTER ENG */
{ 0x03c0, 0x0100 }, /* Amacron ฤ€ LATIN CAPITAL LETTER A WITH MACRON */
{ 0x03c7, 0x012e }, /* Iogonek ฤฎ LATIN CAPITAL LETTER I WITH OGONEK */
{ 0x03cc, 0x0116 }, /* Eabovedot ฤ– LATIN CAPITAL LETTER E WITH DOT ABOVE */
{ 0x03cf, 0x012a }, /* Imacron ฤช LATIN CAPITAL LETTER I WITH MACRON */
{ 0x03d1, 0x0145 }, /* Ncedilla ล… LATIN CAPITAL LETTER N WITH CEDILLA */
{ 0x03d2, 0x014c }, /* Omacron ลŒ LATIN CAPITAL LETTER O WITH MACRON */
{ 0x03d3, 0x0136 }, /* Kcedilla ฤถ LATIN CAPITAL LETTER K WITH CEDILLA */
{ 0x03d9, 0x0172 }, /* Uogonek ลฒ LATIN CAPITAL LETTER U WITH OGONEK */
{ 0x03dd, 0x0168 }, /* Utilde ลจ LATIN CAPITAL LETTER U WITH TILDE */
{ 0x03de, 0x016a }, /* Umacron ลช LATIN CAPITAL LETTER U WITH MACRON */
{ 0x03e0, 0x0101 }, /* amacron ฤ LATIN SMALL LETTER A WITH MACRON */
{ 0x03e7, 0x012f }, /* iogonek ฤฏ LATIN SMALL LETTER I WITH OGONEK */
{ 0x03ec, 0x0117 }, /* eabovedot ฤ— LATIN SMALL LETTER E WITH DOT ABOVE */
{ 0x03ef, 0x012b }, /* imacron ฤซ LATIN SMALL LETTER I WITH MACRON */
{ 0x03f1, 0x0146 }, /* ncedilla ล† LATIN SMALL LETTER N WITH CEDILLA */
{ 0x03f2, 0x014d }, /* omacron ล LATIN SMALL LETTER O WITH MACRON */
{ 0x03f3, 0x0137 }, /* kcedilla ฤท LATIN SMALL LETTER K WITH CEDILLA */
{ 0x03f9, 0x0173 }, /* uogonek ลณ LATIN SMALL LETTER U WITH OGONEK */
{ 0x03fd, 0x0169 }, /* utilde ลฉ LATIN SMALL LETTER U WITH TILDE */
{ 0x03fe, 0x016b }, /* umacron ลซ LATIN SMALL LETTER U WITH MACRON */
{ 0x047e, 0x203e }, /* overline โ€พ OVERLINE */
{ 0x04a1, 0x3002 }, /* kana_fullstop ใ€‚ IDEOGRAPHIC FULL STOP */
{ 0x04a2, 0x300c }, /* kana_openingbracket ใ€Œ LEFT CORNER BRACKET */
{ 0x04a3, 0x300d }, /* kana_closingbracket ใ€ RIGHT CORNER BRACKET */
{ 0x04a4, 0x3001 }, /* kana_comma ใ€ IDEOGRAPHIC COMMA */
{ 0x04a5, 0x30fb }, /* kana_conjunctive ใƒป KATAKANA MIDDLE DOT */
{ 0x04a6, 0x30f2 }, /* kana_WO ใƒฒ KATAKANA LETTER WO */
{ 0x04a7, 0x30a1 }, /* kana_a ใ‚ก KATAKANA LETTER SMALL A */
{ 0x04a8, 0x30a3 }, /* kana_i ใ‚ฃ KATAKANA LETTER SMALL I */
{ 0x04a9, 0x30a5 }, /* kana_u ใ‚ฅ KATAKANA LETTER SMALL U */
{ 0x04aa, 0x30a7 }, /* kana_e ใ‚ง KATAKANA LETTER SMALL E */
{ 0x04ab, 0x30a9 }, /* kana_o ใ‚ฉ KATAKANA LETTER SMALL O */
{ 0x04ac, 0x30e3 }, /* kana_ya ใƒฃ KATAKANA LETTER SMALL YA */
{ 0x04ad, 0x30e5 }, /* kana_yu ใƒฅ KATAKANA LETTER SMALL YU */
{ 0x04ae, 0x30e7 }, /* kana_yo ใƒง KATAKANA LETTER SMALL YO */
{ 0x04af, 0x30c3 }, /* kana_tsu ใƒƒ KATAKANA LETTER SMALL TU */
{ 0x04b0, 0x30fc }, /* prolongedsound ใƒผ KATAKANA-HIRAGANA PROLONGED SOUND MARK */
{ 0x04b1, 0x30a2 }, /* kana_A ใ‚ข KATAKANA LETTER A */
{ 0x04b2, 0x30a4 }, /* kana_I ใ‚ค KATAKANA LETTER I */
{ 0x04b3, 0x30a6 }, /* kana_U ใ‚ฆ KATAKANA LETTER U */
{ 0x04b4, 0x30a8 }, /* kana_E ใ‚จ KATAKANA LETTER E */
{ 0x04b5, 0x30aa }, /* kana_O ใ‚ช KATAKANA LETTER O */
{ 0x04b6, 0x30ab }, /* kana_KA ใ‚ซ KATAKANA LETTER KA */
{ 0x04b7, 0x30ad }, /* kana_KI ใ‚ญ KATAKANA LETTER KI */
{ 0x04b8, 0x30af }, /* kana_KU ใ‚ฏ KATAKANA LETTER KU */
{ 0x04b9, 0x30b1 }, /* kana_KE ใ‚ฑ KATAKANA LETTER KE */
{ 0x04ba, 0x30b3 }, /* kana_KO ใ‚ณ KATAKANA LETTER KO */
{ 0x04bb, 0x30b5 }, /* kana_SA ใ‚ต KATAKANA LETTER SA */
{ 0x04bc, 0x30b7 }, /* kana_SHI ใ‚ท KATAKANA LETTER SI */
{ 0x04bd, 0x30b9 }, /* kana_SU ใ‚น KATAKANA LETTER SU */
{ 0x04be, 0x30bb }, /* kana_SE ใ‚ป KATAKANA LETTER SE */
{ 0x04bf, 0x30bd }, /* kana_SO ใ‚ฝ KATAKANA LETTER SO */
{ 0x04c0, 0x30bf }, /* kana_TA ใ‚ฟ KATAKANA LETTER TA */
{ 0x04c1, 0x30c1 }, /* kana_CHI ใƒ KATAKANA LETTER TI */
{ 0x04c2, 0x30c4 }, /* kana_TSU ใƒ„ KATAKANA LETTER TU */
{ 0x04c3, 0x30c6 }, /* kana_TE ใƒ† KATAKANA LETTER TE */
{ 0x04c4, 0x30c8 }, /* kana_TO ใƒˆ KATAKANA LETTER TO */
{ 0x04c5, 0x30ca }, /* kana_NA ใƒŠ KATAKANA LETTER NA */
{ 0x04c6, 0x30cb }, /* kana_NI ใƒ‹ KATAKANA LETTER NI */
{ 0x04c7, 0x30cc }, /* kana_NU ใƒŒ KATAKANA LETTER NU */
{ 0x04c8, 0x30cd }, /* kana_NE ใƒ KATAKANA LETTER NE */
{ 0x04c9, 0x30ce }, /* kana_NO ใƒŽ KATAKANA LETTER NO */
{ 0x04ca, 0x30cf }, /* kana_HA ใƒ KATAKANA LETTER HA */
{ 0x04cb, 0x30d2 }, /* kana_HI ใƒ’ KATAKANA LETTER HI */
{ 0x04cc, 0x30d5 }, /* kana_FU ใƒ• KATAKANA LETTER HU */
{ 0x04cd, 0x30d8 }, /* kana_HE ใƒ˜ KATAKANA LETTER HE */
{ 0x04ce, 0x30db }, /* kana_HO ใƒ› KATAKANA LETTER HO */
{ 0x04cf, 0x30de }, /* kana_MA ใƒž KATAKANA LETTER MA */
{ 0x04d0, 0x30df }, /* kana_MI ใƒŸ KATAKANA LETTER MI */
{ 0x04d1, 0x30e0 }, /* kana_MU ใƒ  KATAKANA LETTER MU */
{ 0x04d2, 0x30e1 }, /* kana_ME ใƒก KATAKANA LETTER ME */
{ 0x04d3, 0x30e2 }, /* kana_MO ใƒข KATAKANA LETTER MO */
{ 0x04d4, 0x30e4 }, /* kana_YA ใƒค KATAKANA LETTER YA */
{ 0x04d5, 0x30e6 }, /* kana_YU ใƒฆ KATAKANA LETTER YU */
{ 0x04d6, 0x30e8 }, /* kana_YO ใƒจ KATAKANA LETTER YO */
{ 0x04d7, 0x30e9 }, /* kana_RA ใƒฉ KATAKANA LETTER RA */
{ 0x04d8, 0x30ea }, /* kana_RI ใƒช KATAKANA LETTER RI */
{ 0x04d9, 0x30eb }, /* kana_RU ใƒซ KATAKANA LETTER RU */
{ 0x04da, 0x30ec }, /* kana_RE ใƒฌ KATAKANA LETTER RE */
{ 0x04db, 0x30ed }, /* kana_RO ใƒญ KATAKANA LETTER RO */
{ 0x04dc, 0x30ef }, /* kana_WA ใƒฏ KATAKANA LETTER WA */
{ 0x04dd, 0x30f3 }, /* kana_N ใƒณ KATAKANA LETTER N */
{ 0x04de, 0x309b }, /* voicedsound ใ‚› KATAKANA-HIRAGANA VOICED SOUND MARK */
{ 0x04df, 0x309c }, /* semivoicedsound ใ‚œ KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK */
{ 0x05ac, 0x060c }, /* Arabic_comma ุŒ ARABIC COMMA */
{ 0x05bb, 0x061b }, /* Arabic_semicolon ุ› ARABIC SEMICOLON */
{ 0x05bf, 0x061f }, /* Arabic_question_mark ุŸ ARABIC QUESTION MARK */
{ 0x05c1, 0x0621 }, /* Arabic_hamza ุก ARABIC LETTER HAMZA */
{ 0x05c2, 0x0622 }, /* Arabic_maddaonalef ุข ARABIC LETTER ALEF WITH MADDA ABOVE */
{ 0x05c3, 0x0623 }, /* Arabic_hamzaonalef ุฃ ARABIC LETTER ALEF WITH HAMZA ABOVE */
{ 0x05c4, 0x0624 }, /* Arabic_hamzaonwaw ุค ARABIC LETTER WAW WITH HAMZA ABOVE */
{ 0x05c5, 0x0625 }, /* Arabic_hamzaunderalef ุฅ ARABIC LETTER ALEF WITH HAMZA BELOW */
{ 0x05c6, 0x0626 }, /* Arabic_hamzaonyeh ุฆ ARABIC LETTER YEH WITH HAMZA ABOVE */
{ 0x05c7, 0x0627 }, /* Arabic_alef ุง ARABIC LETTER ALEF */
{ 0x05c8, 0x0628 }, /* Arabic_beh ุจ ARABIC LETTER BEH */
{ 0x05c9, 0x0629 }, /* Arabic_tehmarbuta ุฉ ARABIC LETTER TEH MARBUTA */
{ 0x05ca, 0x062a }, /* Arabic_teh ุช ARABIC LETTER TEH */
{ 0x05cb, 0x062b }, /* Arabic_theh ุซ ARABIC LETTER THEH */
{ 0x05cc, 0x062c }, /* Arabic_jeem ุฌ ARABIC LETTER JEEM */
{ 0x05cd, 0x062d }, /* Arabic_hah ุญ ARABIC LETTER HAH */
{ 0x05ce, 0x062e }, /* Arabic_khah ุฎ ARABIC LETTER KHAH */
{ 0x05cf, 0x062f }, /* Arabic_dal ุฏ ARABIC LETTER DAL */
{ 0x05d0, 0x0630 }, /* Arabic_thal ุฐ ARABIC LETTER THAL */
{ 0x05d1, 0x0631 }, /* Arabic_ra ุฑ ARABIC LETTER REH */
{ 0x05d2, 0x0632 }, /* Arabic_zain ุฒ ARABIC LETTER ZAIN */
{ 0x05d3, 0x0633 }, /* Arabic_seen ุณ ARABIC LETTER SEEN */
{ 0x05d4, 0x0634 }, /* Arabic_sheen ุด ARABIC LETTER SHEEN */
{ 0x05d5, 0x0635 }, /* Arabic_sad ุต ARABIC LETTER SAD */
{ 0x05d6, 0x0636 }, /* Arabic_dad ุถ ARABIC LETTER DAD */
{ 0x05d7, 0x0637 }, /* Arabic_tah ุท ARABIC LETTER TAH */
{ 0x05d8, 0x0638 }, /* Arabic_zah ุธ ARABIC LETTER ZAH */
{ 0x05d9, 0x0639 }, /* Arabic_ain ุน ARABIC LETTER AIN */
{ 0x05da, 0x063a }, /* Arabic_ghain ุบ ARABIC LETTER GHAIN */
{ 0x05e0, 0x0640 }, /* Arabic_tatweel ู€ ARABIC TATWEEL */
{ 0x05e1, 0x0641 }, /* Arabic_feh ู ARABIC LETTER FEH */
{ 0x05e2, 0x0642 }, /* Arabic_qaf ู‚ ARABIC LETTER QAF */
{ 0x05e3, 0x0643 }, /* Arabic_kaf ูƒ ARABIC LETTER KAF */
{ 0x05e4, 0x0644 }, /* Arabic_lam ู„ ARABIC LETTER LAM */
{ 0x05e5, 0x0645 }, /* Arabic_meem ู… ARABIC LETTER MEEM */
{ 0x05e6, 0x0646 }, /* Arabic_noon ู† ARABIC LETTER NOON */
{ 0x05e7, 0x0647 }, /* Arabic_ha ู‡ ARABIC LETTER HEH */
{ 0x05e8, 0x0648 }, /* Arabic_waw ูˆ ARABIC LETTER WAW */
{ 0x05e9, 0x0649 }, /* Arabic_alefmaksura ู‰ ARABIC LETTER ALEF MAKSURA */
{ 0x05ea, 0x064a }, /* Arabic_yeh ูŠ ARABIC LETTER YEH */
{ 0x05eb, 0x064b }, /* Arabic_fathatan ู‹ ARABIC FATHATAN */
{ 0x05ec, 0x064c }, /* Arabic_dammatan ูŒ ARABIC DAMMATAN */
{ 0x05ed, 0x064d }, /* Arabic_kasratan ู ARABIC KASRATAN */
{ 0x05ee, 0x064e }, /* Arabic_fatha ูŽ ARABIC FATHA */
{ 0x05ef, 0x064f }, /* Arabic_damma ู ARABIC DAMMA */
{ 0x05f0, 0x0650 }, /* Arabic_kasra ู ARABIC KASRA */
{ 0x05f1, 0x0651 }, /* Arabic_shadda ู‘ ARABIC SHADDA */
{ 0x05f2, 0x0652 }, /* Arabic_sukun ู’ ARABIC SUKUN */
{ 0x06a1, 0x0452 }, /* Serbian_dje ั’ CYRILLIC SMALL LETTER DJE */
{ 0x06a2, 0x0453 }, /* Macedonia_gje ั“ CYRILLIC SMALL LETTER GJE */
{ 0x06a3, 0x0451 }, /* Cyrillic_io ั‘ CYRILLIC SMALL LETTER IO */
{ 0x06a4, 0x0454 }, /* Ukrainian_ie ั” CYRILLIC SMALL LETTER UKRAINIAN IE */
{ 0x06a5, 0x0455 }, /* Macedonia_dse ั• CYRILLIC SMALL LETTER DZE */
{ 0x06a6, 0x0456 }, /* Ukrainian_i ั– CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I */
{ 0x06a7, 0x0457 }, /* Ukrainian_yi ั— CYRILLIC SMALL LETTER YI */
{ 0x06a8, 0x0458 }, /* Cyrillic_je ั˜ CYRILLIC SMALL LETTER JE */
{ 0x06a9, 0x0459 }, /* Cyrillic_lje ั™ CYRILLIC SMALL LETTER LJE */
{ 0x06aa, 0x045a }, /* Cyrillic_nje ัš CYRILLIC SMALL LETTER NJE */
{ 0x06ab, 0x045b }, /* Serbian_tshe ั› CYRILLIC SMALL LETTER TSHE */
{ 0x06ac, 0x045c }, /* Macedonia_kje ัœ CYRILLIC SMALL LETTER KJE */
{ 0x06ae, 0x045e }, /* Byelorussian_shortu ัž CYRILLIC SMALL LETTER SHORT U */
{ 0x06af, 0x045f }, /* Cyrillic_dzhe ัŸ CYRILLIC SMALL LETTER DZHE */
{ 0x06b0, 0x2116 }, /* numerosign โ„– NUMERO SIGN */
{ 0x06b1, 0x0402 }, /* Serbian_DJE ะ‚ CYRILLIC CAPITAL LETTER DJE */
{ 0x06b2, 0x0403 }, /* Macedonia_GJE ะƒ CYRILLIC CAPITAL LETTER GJE */
{ 0x06b3, 0x0401 }, /* Cyrillic_IO ะ CYRILLIC CAPITAL LETTER IO */
{ 0x06b4, 0x0404 }, /* Ukrainian_IE ะ„ CYRILLIC CAPITAL LETTER UKRAINIAN IE */
{ 0x06b5, 0x0405 }, /* Macedonia_DSE ะ… CYRILLIC CAPITAL LETTER DZE */
{ 0x06b6, 0x0406 }, /* Ukrainian_I ะ† CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I */
{ 0x06b7, 0x0407 }, /* Ukrainian_YI ะ‡ CYRILLIC CAPITAL LETTER YI */
{ 0x06b8, 0x0408 }, /* Cyrillic_JE ะˆ CYRILLIC CAPITAL LETTER JE */
{ 0x06b9, 0x0409 }, /* Cyrillic_LJE ะ‰ CYRILLIC CAPITAL LETTER LJE */
{ 0x06ba, 0x040a }, /* Cyrillic_NJE ะŠ CYRILLIC CAPITAL LETTER NJE */
{ 0x06bb, 0x040b }, /* Serbian_TSHE ะ‹ CYRILLIC CAPITAL LETTER TSHE */
{ 0x06bc, 0x040c }, /* Macedonia_KJE ะŒ CYRILLIC CAPITAL LETTER KJE */
{ 0x06be, 0x040e }, /* Byelorussian_SHORTU ะŽ CYRILLIC CAPITAL LETTER SHORT U */
{ 0x06bf, 0x040f }, /* Cyrillic_DZHE ะ CYRILLIC CAPITAL LETTER DZHE */
{ 0x06c0, 0x044e }, /* Cyrillic_yu ัŽ CYRILLIC SMALL LETTER YU */
{ 0x06c1, 0x0430 }, /* Cyrillic_a ะฐ CYRILLIC SMALL LETTER A */
{ 0x06c2, 0x0431 }, /* Cyrillic_be ะฑ CYRILLIC SMALL LETTER BE */
{ 0x06c3, 0x0446 }, /* Cyrillic_tse ั† CYRILLIC SMALL LETTER TSE */
{ 0x06c4, 0x0434 }, /* Cyrillic_de ะด CYRILLIC SMALL LETTER DE */
{ 0x06c5, 0x0435 }, /* Cyrillic_ie ะต CYRILLIC SMALL LETTER IE */
{ 0x06c6, 0x0444 }, /* Cyrillic_ef ั„ CYRILLIC SMALL LETTER EF */
{ 0x06c7, 0x0433 }, /* Cyrillic_ghe ะณ CYRILLIC SMALL LETTER GHE */
{ 0x06c8, 0x0445 }, /* Cyrillic_ha ั… CYRILLIC SMALL LETTER HA */
{ 0x06c9, 0x0438 }, /* Cyrillic_i ะธ CYRILLIC SMALL LETTER I */
{ 0x06ca, 0x0439 }, /* Cyrillic_shorti ะน CYRILLIC SMALL LETTER SHORT I */
{ 0x06cb, 0x043a }, /* Cyrillic_ka ะบ CYRILLIC SMALL LETTER KA */
{ 0x06cc, 0x043b }, /* Cyrillic_el ะป CYRILLIC SMALL LETTER EL */
{ 0x06cd, 0x043c }, /* Cyrillic_em ะผ CYRILLIC SMALL LETTER EM */
{ 0x06ce, 0x043d }, /* Cyrillic_en ะฝ CYRILLIC SMALL LETTER EN */
{ 0x06cf, 0x043e }, /* Cyrillic_o ะพ CYRILLIC SMALL LETTER O */
{ 0x06d0, 0x043f }, /* Cyrillic_pe ะฟ CYRILLIC SMALL LETTER PE */
{ 0x06d1, 0x044f }, /* Cyrillic_ya ั CYRILLIC SMALL LETTER YA */
{ 0x06d2, 0x0440 }, /* Cyrillic_er ั€ CYRILLIC SMALL LETTER ER */
{ 0x06d3, 0x0441 }, /* Cyrillic_es ั CYRILLIC SMALL LETTER ES */
{ 0x06d4, 0x0442 }, /* Cyrillic_te ั‚ CYRILLIC SMALL LETTER TE */
{ 0x06d5, 0x0443 }, /* Cyrillic_u ัƒ CYRILLIC SMALL LETTER U */
{ 0x06d6, 0x0436 }, /* Cyrillic_zhe ะถ CYRILLIC SMALL LETTER ZHE */
{ 0x06d7, 0x0432 }, /* Cyrillic_ve ะฒ CYRILLIC SMALL LETTER VE */
{ 0x06d8, 0x044c }, /* Cyrillic_softsign ัŒ CYRILLIC SMALL LETTER SOFT SIGN */
{ 0x06d9, 0x044b }, /* Cyrillic_yeru ั‹ CYRILLIC SMALL LETTER YERU */
{ 0x06da, 0x0437 }, /* Cyrillic_ze ะท CYRILLIC SMALL LETTER ZE */
{ 0x06db, 0x0448 }, /* Cyrillic_sha ัˆ CYRILLIC SMALL LETTER SHA */
{ 0x06dc, 0x044d }, /* Cyrillic_e ั CYRILLIC SMALL LETTER E */
{ 0x06dd, 0x0449 }, /* Cyrillic_shcha ั‰ CYRILLIC SMALL LETTER SHCHA */
{ 0x06de, 0x0447 }, /* Cyrillic_che ั‡ CYRILLIC SMALL LETTER CHE */
{ 0x06df, 0x044a }, /* Cyrillic_hardsign ัŠ CYRILLIC SMALL LETTER HARD SIGN */
{ 0x06e0, 0x042e }, /* Cyrillic_YU ะฎ CYRILLIC CAPITAL LETTER YU */
{ 0x06e1, 0x0410 }, /* Cyrillic_A ะ CYRILLIC CAPITAL LETTER A */
{ 0x06e2, 0x0411 }, /* Cyrillic_BE ะ‘ CYRILLIC CAPITAL LETTER BE */
{ 0x06e3, 0x0426 }, /* Cyrillic_TSE ะฆ CYRILLIC CAPITAL LETTER TSE */
{ 0x06e4, 0x0414 }, /* Cyrillic_DE ะ” CYRILLIC CAPITAL LETTER DE */
{ 0x06e5, 0x0415 }, /* Cyrillic_IE ะ• CYRILLIC CAPITAL LETTER IE */
{ 0x06e6, 0x0424 }, /* Cyrillic_EF ะค CYRILLIC CAPITAL LETTER EF */
{ 0x06e7, 0x0413 }, /* Cyrillic_GHE ะ“ CYRILLIC CAPITAL LETTER GHE */
{ 0x06e8, 0x0425 }, /* Cyrillic_HA ะฅ CYRILLIC CAPITAL LETTER HA */
{ 0x06e9, 0x0418 }, /* Cyrillic_I ะ˜ CYRILLIC CAPITAL LETTER I */
{ 0x06ea, 0x0419 }, /* Cyrillic_SHORTI ะ™ CYRILLIC CAPITAL LETTER SHORT I */
{ 0x06eb, 0x041a }, /* Cyrillic_KA ะš CYRILLIC CAPITAL LETTER KA */
{ 0x06ec, 0x041b }, /* Cyrillic_EL ะ› CYRILLIC CAPITAL LETTER EL */
{ 0x06ed, 0x041c }, /* Cyrillic_EM ะœ CYRILLIC CAPITAL LETTER EM */
{ 0x06ee, 0x041d }, /* Cyrillic_EN ะ CYRILLIC CAPITAL LETTER EN */
{ 0x06ef, 0x041e }, /* Cyrillic_O ะž CYRILLIC CAPITAL LETTER O */
{ 0x06f0, 0x041f }, /* Cyrillic_PE ะŸ CYRILLIC CAPITAL LETTER PE */
{ 0x06f1, 0x042f }, /* Cyrillic_YA ะฏ CYRILLIC CAPITAL LETTER YA */
{ 0x06f2, 0x0420 }, /* Cyrillic_ER ะ  CYRILLIC CAPITAL LETTER ER */
{ 0x06f3, 0x0421 }, /* Cyrillic_ES ะก CYRILLIC CAPITAL LETTER ES */
{ 0x06f4, 0x0422 }, /* Cyrillic_TE ะข CYRILLIC CAPITAL LETTER TE */
{ 0x06f5, 0x0423 }, /* Cyrillic_U ะฃ CYRILLIC CAPITAL LETTER U */
{ 0x06f6, 0x0416 }, /* Cyrillic_ZHE ะ– CYRILLIC CAPITAL LETTER ZHE */
{ 0x06f7, 0x0412 }, /* Cyrillic_VE ะ’ CYRILLIC CAPITAL LETTER VE */
{ 0x06f8, 0x042c }, /* Cyrillic_SOFTSIGN ะฌ CYRILLIC CAPITAL LETTER SOFT SIGN */
{ 0x06f9, 0x042b }, /* Cyrillic_YERU ะซ CYRILLIC CAPITAL LETTER YERU */
{ 0x06fa, 0x0417 }, /* Cyrillic_ZE ะ— CYRILLIC CAPITAL LETTER ZE */
{ 0x06fb, 0x0428 }, /* Cyrillic_SHA ะจ CYRILLIC CAPITAL LETTER SHA */
{ 0x06fc, 0x042d }, /* Cyrillic_E ะญ CYRILLIC CAPITAL LETTER E */
{ 0x06fd, 0x0429 }, /* Cyrillic_SHCHA ะฉ CYRILLIC CAPITAL LETTER SHCHA */
{ 0x06fe, 0x0427 }, /* Cyrillic_CHE ะง CYRILLIC CAPITAL LETTER CHE */
{ 0x06ff, 0x042a }, /* Cyrillic_HARDSIGN ะช CYRILLIC CAPITAL LETTER HARD SIGN */
{ 0x07a1, 0x0386 }, /* Greek_ALPHAaccent ฮ† GREEK CAPITAL LETTER ALPHA WITH TONOS */
{ 0x07a2, 0x0388 }, /* Greek_EPSILONaccent ฮˆ GREEK CAPITAL LETTER EPSILON WITH TONOS */
{ 0x07a3, 0x0389 }, /* Greek_ETAaccent ฮ‰ GREEK CAPITAL LETTER ETA WITH TONOS */
{ 0x07a4, 0x038a }, /* Greek_IOTAaccent ฮŠ GREEK CAPITAL LETTER IOTA WITH TONOS */
{ 0x07a5, 0x03aa }, /* Greek_IOTAdiaeresis ฮช GREEK CAPITAL LETTER IOTA WITH DIALYTIKA */
{ 0x07a7, 0x038c }, /* Greek_OMICRONaccent ฮŒ GREEK CAPITAL LETTER OMICRON WITH TONOS */
{ 0x07a8, 0x038e }, /* Greek_UPSILONaccent ฮŽ GREEK CAPITAL LETTER UPSILON WITH TONOS */
{ 0x07a9, 0x03ab }, /* Greek_UPSILONdieresis ฮซ GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA */
{ 0x07ab, 0x038f }, /* Greek_OMEGAaccent ฮ GREEK CAPITAL LETTER OMEGA WITH TONOS */
{ 0x07ae, 0x0385 }, /* Greek_accentdieresis ฮ… GREEK DIALYTIKA TONOS */
{ 0x07af, 0x2015 }, /* Greek_horizbar โ€• HORIZONTAL BAR */
{ 0x07b1, 0x03ac }, /* Greek_alphaaccent ฮฌ GREEK SMALL LETTER ALPHA WITH TONOS */
{ 0x07b2, 0x03ad }, /* Greek_epsilonaccent ฮญ GREEK SMALL LETTER EPSILON WITH TONOS */
{ 0x07b3, 0x03ae }, /* Greek_etaaccent ฮฎ GREEK SMALL LETTER ETA WITH TONOS */
{ 0x07b4, 0x03af }, /* Greek_iotaaccent ฮฏ GREEK SMALL LETTER IOTA WITH TONOS */
{ 0x07b5, 0x03ca }, /* Greek_iotadieresis ฯŠ GREEK SMALL LETTER IOTA WITH DIALYTIKA */
{ 0x07b6, 0x0390 }, /* Greek_iotaaccentdieresis ฮ GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS */
{ 0x07b7, 0x03cc }, /* Greek_omicronaccent ฯŒ GREEK SMALL LETTER OMICRON WITH TONOS */
{ 0x07b8, 0x03cd }, /* Greek_upsilonaccent ฯ GREEK SMALL LETTER UPSILON WITH TONOS */
{ 0x07b9, 0x03cb }, /* Greek_upsilondieresis ฯ‹ GREEK SMALL LETTER UPSILON WITH DIALYTIKA */
{ 0x07ba, 0x03b0 }, /* Greek_upsilonaccentdieresis ฮฐ GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS */
{ 0x07bb, 0x03ce }, /* Greek_omegaaccent ฯŽ GREEK SMALL LETTER OMEGA WITH TONOS */
{ 0x07c1, 0x0391 }, /* Greek_ALPHA ฮ‘ GREEK CAPITAL LETTER ALPHA */
{ 0x07c2, 0x0392 }, /* Greek_BETA ฮ’ GREEK CAPITAL LETTER BETA */
{ 0x07c3, 0x0393 }, /* Greek_GAMMA ฮ“ GREEK CAPITAL LETTER GAMMA */
{ 0x07c4, 0x0394 }, /* Greek_DELTA ฮ” GREEK CAPITAL LETTER DELTA */
{ 0x07c5, 0x0395 }, /* Greek_EPSILON ฮ• GREEK CAPITAL LETTER EPSILON */
{ 0x07c6, 0x0396 }, /* Greek_ZETA ฮ– GREEK CAPITAL LETTER ZETA */
{ 0x07c7, 0x0397 }, /* Greek_ETA ฮ— GREEK CAPITAL LETTER ETA */
{ 0x07c8, 0x0398 }, /* Greek_THETA ฮ˜ GREEK CAPITAL LETTER THETA */
{ 0x07c9, 0x0399 }, /* Greek_IOTA ฮ™ GREEK CAPITAL LETTER IOTA */
{ 0x07ca, 0x039a }, /* Greek_KAPPA ฮš GREEK CAPITAL LETTER KAPPA */
{ 0x07cb, 0x039b }, /* Greek_LAMBDA ฮ› GREEK CAPITAL LETTER LAMDA */
{ 0x07cc, 0x039c }, /* Greek_MU ฮœ GREEK CAPITAL LETTER MU */
{ 0x07cd, 0x039d }, /* Greek_NU ฮ GREEK CAPITAL LETTER NU */
{ 0x07ce, 0x039e }, /* Greek_XI ฮž GREEK CAPITAL LETTER XI */
{ 0x07cf, 0x039f }, /* Greek_OMICRON ฮŸ GREEK CAPITAL LETTER OMICRON */
{ 0x07d0, 0x03a0 }, /* Greek_PI ฮ  GREEK CAPITAL LETTER PI */
{ 0x07d1, 0x03a1 }, /* Greek_RHO ฮก GREEK CAPITAL LETTER RHO */
{ 0x07d2, 0x03a3 }, /* Greek_SIGMA ฮฃ GREEK CAPITAL LETTER SIGMA */
{ 0x07d4, 0x03a4 }, /* Greek_TAU ฮค GREEK CAPITAL LETTER TAU */
{ 0x07d5, 0x03a5 }, /* Greek_UPSILON ฮฅ GREEK CAPITAL LETTER UPSILON */
{ 0x07d6, 0x03a6 }, /* Greek_PHI ฮฆ GREEK CAPITAL LETTER PHI */
{ 0x07d7, 0x03a7 }, /* Greek_CHI ฮง GREEK CAPITAL LETTER CHI */
{ 0x07d8, 0x03a8 }, /* Greek_PSI ฮจ GREEK CAPITAL LETTER PSI */
{ 0x07d9, 0x03a9 }, /* Greek_OMEGA ฮฉ GREEK CAPITAL LETTER OMEGA */
{ 0x07e1, 0x03b1 }, /* Greek_alpha ฮฑ GREEK SMALL LETTER ALPHA */
{ 0x07e2, 0x03b2 }, /* Greek_beta ฮฒ GREEK SMALL LETTER BETA */
{ 0x07e3, 0x03b3 }, /* Greek_gamma ฮณ GREEK SMALL LETTER GAMMA */
{ 0x07e4, 0x03b4 }, /* Greek_delta ฮด GREEK SMALL LETTER DELTA */
{ 0x07e5, 0x03b5 }, /* Greek_epsilon ฮต GREEK SMALL LETTER EPSILON */
{ 0x07e6, 0x03b6 }, /* Greek_zeta ฮถ GREEK SMALL LETTER ZETA */
{ 0x07e7, 0x03b7 }, /* Greek_eta ฮท GREEK SMALL LETTER ETA */
{ 0x07e8, 0x03b8 }, /* Greek_theta ฮธ GREEK SMALL LETTER THETA */
{ 0x07e9, 0x03b9 }, /* Greek_iota ฮน GREEK SMALL LETTER IOTA */
{ 0x07ea, 0x03ba }, /* Greek_kappa ฮบ GREEK SMALL LETTER KAPPA */
{ 0x07eb, 0x03bb }, /* Greek_lambda ฮป GREEK SMALL LETTER LAMDA */
{ 0x07ec, 0x03bc }, /* Greek_mu ฮผ GREEK SMALL LETTER MU */
{ 0x07ed, 0x03bd }, /* Greek_nu ฮฝ GREEK SMALL LETTER NU */
{ 0x07ee, 0x03be }, /* Greek_xi ฮพ GREEK SMALL LETTER XI */
{ 0x07ef, 0x03bf }, /* Greek_omicron ฮฟ GREEK SMALL LETTER OMICRON */
{ 0x07f0, 0x03c0 }, /* Greek_pi ฯ€ GREEK SMALL LETTER PI */
{ 0x07f1, 0x03c1 }, /* Greek_rho ฯ GREEK SMALL LETTER RHO */
{ 0x07f2, 0x03c3 }, /* Greek_sigma ฯƒ GREEK SMALL LETTER SIGMA */
{ 0x07f3, 0x03c2 }, /* Greek_finalsmallsigma ฯ‚ GREEK SMALL LETTER FINAL SIGMA */
{ 0x07f4, 0x03c4 }, /* Greek_tau ฯ„ GREEK SMALL LETTER TAU */
{ 0x07f5, 0x03c5 }, /* Greek_upsilon ฯ… GREEK SMALL LETTER UPSILON */
{ 0x07f6, 0x03c6 }, /* Greek_phi ฯ† GREEK SMALL LETTER PHI */
{ 0x07f7, 0x03c7 }, /* Greek_chi ฯ‡ GREEK SMALL LETTER CHI */
{ 0x07f8, 0x03c8 }, /* Greek_psi ฯˆ GREEK SMALL LETTER PSI */
{ 0x07f9, 0x03c9 }, /* Greek_omega ฯ‰ GREEK SMALL LETTER OMEGA */
{ 0x08a1, 0x23b7 }, /* leftradical โŽท ??? */
{ 0x08a2, 0x250c }, /* topleftradical โ”Œ BOX DRAWINGS LIGHT DOWN AND RIGHT */
{ 0x08a3, 0x2500 }, /* horizconnector โ”€ BOX DRAWINGS LIGHT HORIZONTAL */
{ 0x08a4, 0x2320 }, /* topintegral โŒ  TOP HALF INTEGRAL */
{ 0x08a5, 0x2321 }, /* botintegral โŒก BOTTOM HALF INTEGRAL */
{ 0x08a6, 0x2502 }, /* vertconnector โ”‚ BOX DRAWINGS LIGHT VERTICAL */
{ 0x08a7, 0x23a1 }, /* topleftsqbracket โŽก ??? */
{ 0x08a8, 0x23a3 }, /* botleftsqbracket โŽฃ ??? */
{ 0x08a9, 0x23a4 }, /* toprightsqbracket โŽค ??? */
{ 0x08aa, 0x23a6 }, /* botrightsqbracket โŽฆ ??? */
{ 0x08ab, 0x239b }, /* topleftparens โŽ› ??? */
{ 0x08ac, 0x239d }, /* botleftparens โŽ ??? */
{ 0x08ad, 0x239e }, /* toprightparens โŽž ??? */
{ 0x08ae, 0x23a0 }, /* botrightparens โŽ  ??? */
{ 0x08af, 0x23a8 }, /* leftmiddlecurlybrace โŽจ ??? */
{ 0x08b0, 0x23ac }, /* rightmiddlecurlybrace โŽฌ ??? */
/* 0x08b1 topleftsummation ? ??? */
/* 0x08b2 botleftsummation ? ??? */
/* 0x08b3 topvertsummationconnector ? ??? */
/* 0x08b4 botvertsummationconnector ? ??? */
/* 0x08b5 toprightsummation ? ??? */
/* 0x08b6 botrightsummation ? ??? */
/* 0x08b7 rightmiddlesummation ? ??? */
{ 0x08bc, 0x2264 }, /* lessthanequal โ‰ค LESS-THAN OR EQUAL TO */
{ 0x08bd, 0x2260 }, /* notequal โ‰  NOT EQUAL TO */
{ 0x08be, 0x2265 }, /* greaterthanequal โ‰ฅ GREATER-THAN OR EQUAL TO */
{ 0x08bf, 0x222b }, /* integral โˆซ INTEGRAL */
{ 0x08c0, 0x2234 }, /* therefore โˆด THEREFORE */
{ 0x08c1, 0x221d }, /* variation โˆ PROPORTIONAL TO */
{ 0x08c2, 0x221e }, /* infinity โˆž INFINITY */
{ 0x08c5, 0x2207 }, /* nabla โˆ‡ NABLA */
{ 0x08c8, 0x223c }, /* approximate โˆผ TILDE OPERATOR */
{ 0x08c9, 0x2243 }, /* similarequal โ‰ƒ ASYMPTOTICALLY EQUAL TO */
{ 0x08cd, 0x21d4 }, /* ifonlyif โ‡” LEFT RIGHT DOUBLE ARROW */
{ 0x08ce, 0x21d2 }, /* implies โ‡’ RIGHTWARDS DOUBLE ARROW */
{ 0x08cf, 0x2261 }, /* identical โ‰ก IDENTICAL TO */
{ 0x08d6, 0x221a }, /* radical โˆš SQUARE ROOT */
{ 0x08da, 0x2282 }, /* includedin โŠ‚ SUBSET OF */
{ 0x08db, 0x2283 }, /* includes โŠƒ SUPERSET OF */
{ 0x08dc, 0x2229 }, /* intersection โˆฉ INTERSECTION */
{ 0x08dd, 0x222a }, /* union โˆช UNION */
{ 0x08de, 0x2227 }, /* logicaland โˆง LOGICAL AND */
{ 0x08df, 0x2228 }, /* logicalor โˆจ LOGICAL OR */
{ 0x08ef, 0x2202 }, /* partialderivative โˆ‚ PARTIAL DIFFERENTIAL */
{ 0x08f6, 0x0192 }, /* function ฦ’ LATIN SMALL LETTER F WITH HOOK */
{ 0x08fb, 0x2190 }, /* leftarrow โ† LEFTWARDS ARROW */
{ 0x08fc, 0x2191 }, /* uparrow โ†‘ UPWARDS ARROW */
{ 0x08fd, 0x2192 }, /* rightarrow โ†’ RIGHTWARDS ARROW */
{ 0x08fe, 0x2193 }, /* downarrow โ†“ DOWNWARDS ARROW */
/* 0x09df blank ? ??? */
{ 0x09e0, 0x25c6 }, /* soliddiamond โ—† BLACK DIAMOND */
{ 0x09e1, 0x2592 }, /* checkerboard โ–’ MEDIUM SHADE */
{ 0x09e2, 0x2409 }, /* ht โ‰ SYMBOL FOR HORIZONTAL TABULATION */
{ 0x09e3, 0x240c }, /* ff โŒ SYMBOL FOR FORM FEED */
{ 0x09e4, 0x240d }, /* cr โ SYMBOL FOR CARRIAGE RETURN */
{ 0x09e5, 0x240a }, /* lf โŠ SYMBOL FOR LINE FEED */
{ 0x09e8, 0x2424 }, /* nl โค SYMBOL FOR NEWLINE */
{ 0x09e9, 0x240b }, /* vt โ‹ SYMBOL FOR VERTICAL TABULATION */
{ 0x09ea, 0x2518 }, /* lowrightcorner โ”˜ BOX DRAWINGS LIGHT UP AND LEFT */
{ 0x09eb, 0x2510 }, /* uprightcorner โ” BOX DRAWINGS LIGHT DOWN AND LEFT */
{ 0x09ec, 0x250c }, /* upleftcorner โ”Œ BOX DRAWINGS LIGHT DOWN AND RIGHT */
{ 0x09ed, 0x2514 }, /* lowleftcorner โ”” BOX DRAWINGS LIGHT UP AND RIGHT */
{ 0x09ee, 0x253c }, /* crossinglines โ”ผ BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL */
{ 0x09ef, 0x23ba }, /* horizlinescan1 โŽบ HORIZONTAL SCAN LINE-1 (Unicode 3.2 draft) */
{ 0x09f0, 0x23bb }, /* horizlinescan3 โŽป HORIZONTAL SCAN LINE-3 (Unicode 3.2 draft) */
{ 0x09f1, 0x2500 }, /* horizlinescan5 โ”€ BOX DRAWINGS LIGHT HORIZONTAL */
{ 0x09f2, 0x23bc }, /* horizlinescan7 โŽผ HORIZONTAL SCAN LINE-7 (Unicode 3.2 draft) */
{ 0x09f3, 0x23bd }, /* horizlinescan9 โŽฝ HORIZONTAL SCAN LINE-9 (Unicode 3.2 draft) */
{ 0x09f4, 0x251c }, /* leftt โ”œ BOX DRAWINGS LIGHT VERTICAL AND RIGHT */
{ 0x09f5, 0x2524 }, /* rightt โ”ค BOX DRAWINGS LIGHT VERTICAL AND LEFT */
{ 0x09f6, 0x2534 }, /* bott โ”ด BOX DRAWINGS LIGHT UP AND HORIZONTAL */
{ 0x09f7, 0x252c }, /* topt โ”ฌ BOX DRAWINGS LIGHT DOWN AND HORIZONTAL */
{ 0x09f8, 0x2502 }, /* vertbar โ”‚ BOX DRAWINGS LIGHT VERTICAL */
{ 0x0aa1, 0x2003 }, /* emspace โ€ƒ EM SPACE */
{ 0x0aa2, 0x2002 }, /* enspace โ€‚ EN SPACE */
{ 0x0aa3, 0x2004 }, /* em3space โ€„ THREE-PER-EM SPACE */
{ 0x0aa4, 0x2005 }, /* em4space โ€… FOUR-PER-EM SPACE */
{ 0x0aa5, 0x2007 }, /* digitspace โ€‡ FIGURE SPACE */
{ 0x0aa6, 0x2008 }, /* punctspace โ€ˆ PUNCTUATION SPACE */
{ 0x0aa7, 0x2009 }, /* thinspace โ€‰ THIN SPACE */
{ 0x0aa8, 0x200a }, /* hairspace โ€Š HAIR SPACE */
{ 0x0aa9, 0x2014 }, /* emdash โ€” EM DASH */
{ 0x0aaa, 0x2013 }, /* endash โ€“ EN DASH */
/* 0x0aac signifblank ? ??? */
{ 0x0aae, 0x2026 }, /* ellipsis โ€ฆ HORIZONTAL ELLIPSIS */
{ 0x0aaf, 0x2025 }, /* doubbaselinedot โ€ฅ TWO DOT LEADER */
{ 0x0ab0, 0x2153 }, /* onethird โ…“ VULGAR FRACTION ONE THIRD */
{ 0x0ab1, 0x2154 }, /* twothirds โ…” VULGAR FRACTION TWO THIRDS */
{ 0x0ab2, 0x2155 }, /* onefifth โ…• VULGAR FRACTION ONE FIFTH */
{ 0x0ab3, 0x2156 }, /* twofifths โ…– VULGAR FRACTION TWO FIFTHS */
{ 0x0ab4, 0x2157 }, /* threefifths โ…— VULGAR FRACTION THREE FIFTHS */
{ 0x0ab5, 0x2158 }, /* fourfifths โ…˜ VULGAR FRACTION FOUR FIFTHS */
{ 0x0ab6, 0x2159 }, /* onesixth โ…™ VULGAR FRACTION ONE SIXTH */
{ 0x0ab7, 0x215a }, /* fivesixths โ…š VULGAR FRACTION FIVE SIXTHS */
{ 0x0ab8, 0x2105 }, /* careof โ„… CARE OF */
{ 0x0abb, 0x2012 }, /* figdash โ€’ FIGURE DASH */
{ 0x0abc, 0x2329 }, /* leftanglebracket โŒฉ LEFT-POINTING ANGLE BRACKET */
/* 0x0abd decimalpoint ? ??? */
{ 0x0abe, 0x232a }, /* rightanglebracket โŒช RIGHT-POINTING ANGLE BRACKET */
/* 0x0abf marker ? ??? */
{ 0x0ac3, 0x215b }, /* oneeighth โ…› VULGAR FRACTION ONE EIGHTH */
{ 0x0ac4, 0x215c }, /* threeeighths โ…œ VULGAR FRACTION THREE EIGHTHS */
{ 0x0ac5, 0x215d }, /* fiveeighths โ… VULGAR FRACTION FIVE EIGHTHS */
{ 0x0ac6, 0x215e }, /* seveneighths โ…ž VULGAR FRACTION SEVEN EIGHTHS */
{ 0x0ac9, 0x2122 }, /* trademark โ„ข TRADE MARK SIGN */
{ 0x0aca, 0x2613 }, /* signaturemark โ˜“ SALTIRE */
/* 0x0acb trademarkincircle ? ??? */
{ 0x0acc, 0x25c1 }, /* leftopentriangle โ— WHITE LEFT-POINTING TRIANGLE */
{ 0x0acd, 0x25b7 }, /* rightopentriangle โ–ท WHITE RIGHT-POINTING TRIANGLE */
{ 0x0ace, 0x25cb }, /* emopencircle โ—‹ WHITE CIRCLE */
{ 0x0acf, 0x25af }, /* emopenrectangle โ–ฏ WHITE VERTICAL RECTANGLE */
{ 0x0ad0, 0x2018 }, /* leftsinglequotemark โ€˜ LEFT SINGLE QUOTATION MARK */
{ 0x0ad1, 0x2019 }, /* rightsinglequotemark โ€™ RIGHT SINGLE QUOTATION MARK */
{ 0x0ad2, 0x201c }, /* leftdoublequotemark โ€œ LEFT DOUBLE QUOTATION MARK */
{ 0x0ad3, 0x201d }, /* rightdoublequotemark โ€ RIGHT DOUBLE QUOTATION MARK */
{ 0x0ad4, 0x211e }, /* prescription โ„ž PRESCRIPTION TAKE */
{ 0x0ad6, 0x2032 }, /* minutes โ€ฒ PRIME */
{ 0x0ad7, 0x2033 }, /* seconds โ€ณ DOUBLE PRIME */
{ 0x0ad9, 0x271d }, /* latincross โœ LATIN CROSS */
/* 0x0ada hexagram ? ??? */
{ 0x0adb, 0x25ac }, /* filledrectbullet โ–ฌ BLACK RECTANGLE */
{ 0x0adc, 0x25c0 }, /* filledlefttribullet โ—€ BLACK LEFT-POINTING TRIANGLE */
{ 0x0add, 0x25b6 }, /* filledrighttribullet โ–ถ BLACK RIGHT-POINTING TRIANGLE */
{ 0x0ade, 0x25cf }, /* emfilledcircle โ— BLACK CIRCLE */
{ 0x0adf, 0x25ae }, /* emfilledrect โ–ฎ BLACK VERTICAL RECTANGLE */
{ 0x0ae0, 0x25e6 }, /* enopencircbullet โ—ฆ WHITE BULLET */
{ 0x0ae1, 0x25ab }, /* enopensquarebullet โ–ซ WHITE SMALL SQUARE */
{ 0x0ae2, 0x25ad }, /* openrectbullet โ–ญ WHITE RECTANGLE */
{ 0x0ae3, 0x25b3 }, /* opentribulletup โ–ณ WHITE UP-POINTING TRIANGLE */
{ 0x0ae4, 0x25bd }, /* opentribulletdown โ–ฝ WHITE DOWN-POINTING TRIANGLE */
{ 0x0ae5, 0x2606 }, /* openstar โ˜† WHITE STAR */
{ 0x0ae6, 0x2022 }, /* enfilledcircbullet โ€ข BULLET */
{ 0x0ae7, 0x25aa }, /* enfilledsqbullet โ–ช BLACK SMALL SQUARE */
{ 0x0ae8, 0x25b2 }, /* filledtribulletup โ–ฒ BLACK UP-POINTING TRIANGLE */
{ 0x0ae9, 0x25bc }, /* filledtribulletdown โ–ผ BLACK DOWN-POINTING TRIANGLE */
{ 0x0aea, 0x261c }, /* leftpointer โ˜œ WHITE LEFT POINTING INDEX */
{ 0x0aeb, 0x261e }, /* rightpointer โ˜ž WHITE RIGHT POINTING INDEX */
{ 0x0aec, 0x2663 }, /* club โ™ฃ BLACK CLUB SUIT */
{ 0x0aed, 0x2666 }, /* diamond โ™ฆ BLACK DIAMOND SUIT */
{ 0x0aee, 0x2665 }, /* heart โ™ฅ BLACK HEART SUIT */
{ 0x0af0, 0x2720 }, /* maltesecross โœ  MALTESE CROSS */
{ 0x0af1, 0x2020 }, /* dagger โ€  DAGGER */
{ 0x0af2, 0x2021 }, /* doubledagger โ€ก DOUBLE DAGGER */
{ 0x0af3, 0x2713 }, /* checkmark โœ“ CHECK MARK */
{ 0x0af4, 0x2717 }, /* ballotcross โœ— BALLOT X */
{ 0x0af5, 0x266f }, /* musicalsharp โ™ฏ MUSIC SHARP SIGN */
{ 0x0af6, 0x266d }, /* musicalflat โ™ญ MUSIC FLAT SIGN */
{ 0x0af7, 0x2642 }, /* malesymbol โ™‚ MALE SIGN */
{ 0x0af8, 0x2640 }, /* femalesymbol โ™€ FEMALE SIGN */
{ 0x0af9, 0x260e }, /* telephone โ˜Ž BLACK TELEPHONE */
{ 0x0afa, 0x2315 }, /* telephonerecorder โŒ• TELEPHONE RECORDER */
{ 0x0afb, 0x2117 }, /* phonographcopyright โ„— SOUND RECORDING COPYRIGHT */
{ 0x0afc, 0x2038 }, /* caret โ€ธ CARET */
{ 0x0afd, 0x201a }, /* singlelowquotemark โ€š SINGLE LOW-9 QUOTATION MARK */
{ 0x0afe, 0x201e }, /* doublelowquotemark โ€ž DOUBLE LOW-9 QUOTATION MARK */
/* 0x0aff cursor ? ??? */
{ 0x0ba3, 0x003c }, /* leftcaret < LESS-THAN SIGN */
{ 0x0ba6, 0x003e }, /* rightcaret > GREATER-THAN SIGN */
{ 0x0ba8, 0x2228 }, /* downcaret โˆจ LOGICAL OR */
{ 0x0ba9, 0x2227 }, /* upcaret โˆง LOGICAL AND */
{ 0x0bc0, 0x00af }, /* overbar ยฏ MACRON */
{ 0x0bc2, 0x22a5 }, /* downtack โŠฅ UP TACK */
{ 0x0bc3, 0x2229 }, /* upshoe โˆฉ INTERSECTION */
{ 0x0bc4, 0x230a }, /* downstile โŒŠ LEFT FLOOR */
{ 0x0bc6, 0x005f }, /* underbar _ LOW LINE */
{ 0x0bca, 0x2218 }, /* jot โˆ˜ RING OPERATOR */
{ 0x0bcc, 0x2395 }, /* quad โŽ• APL FUNCTIONAL SYMBOL QUAD */
{ 0x0bce, 0x22a4 }, /* uptack โŠค DOWN TACK */
{ 0x0bcf, 0x25cb }, /* circle โ—‹ WHITE CIRCLE */
{ 0x0bd3, 0x2308 }, /* upstile โŒˆ LEFT CEILING */
{ 0x0bd6, 0x222a }, /* downshoe โˆช UNION */
{ 0x0bd8, 0x2283 }, /* rightshoe โŠƒ SUPERSET OF */
{ 0x0bda, 0x2282 }, /* leftshoe โŠ‚ SUBSET OF */
{ 0x0bdc, 0x22a2 }, /* lefttack โŠข RIGHT TACK */
{ 0x0bfc, 0x22a3 }, /* righttack โŠฃ LEFT TACK */
{ 0x0cdf, 0x2017 }, /* hebrew_doublelowline โ€— DOUBLE LOW LINE */
{ 0x0ce0, 0x05d0 }, /* hebrew_aleph ื HEBREW LETTER ALEF */
{ 0x0ce1, 0x05d1 }, /* hebrew_bet ื‘ HEBREW LETTER BET */
{ 0x0ce2, 0x05d2 }, /* hebrew_gimel ื’ HEBREW LETTER GIMEL */
{ 0x0ce3, 0x05d3 }, /* hebrew_dalet ื“ HEBREW LETTER DALET */
{ 0x0ce4, 0x05d4 }, /* hebrew_he ื” HEBREW LETTER HE */
{ 0x0ce5, 0x05d5 }, /* hebrew_waw ื• HEBREW LETTER VAV */
{ 0x0ce6, 0x05d6 }, /* hebrew_zain ื– HEBREW LETTER ZAYIN */
{ 0x0ce7, 0x05d7 }, /* hebrew_chet ื— HEBREW LETTER HET */
{ 0x0ce8, 0x05d8 }, /* hebrew_tet ื˜ HEBREW LETTER TET */
{ 0x0ce9, 0x05d9 }, /* hebrew_yod ื™ HEBREW LETTER YOD */
{ 0x0cea, 0x05da }, /* hebrew_finalkaph ืš HEBREW LETTER FINAL KAF */
{ 0x0ceb, 0x05db }, /* hebrew_kaph ื› HEBREW LETTER KAF */
{ 0x0cec, 0x05dc }, /* hebrew_lamed ืœ HEBREW LETTER LAMED */
{ 0x0ced, 0x05dd }, /* hebrew_finalmem ื HEBREW LETTER FINAL MEM */
{ 0x0cee, 0x05de }, /* hebrew_mem ืž HEBREW LETTER MEM */
{ 0x0cef, 0x05df }, /* hebrew_finalnun ืŸ HEBREW LETTER FINAL NUN */
{ 0x0cf0, 0x05e0 }, /* hebrew_nun ื  HEBREW LETTER NUN */
{ 0x0cf1, 0x05e1 }, /* hebrew_samech ืก HEBREW LETTER SAMEKH */
{ 0x0cf2, 0x05e2 }, /* hebrew_ayin ืข HEBREW LETTER AYIN */
{ 0x0cf3, 0x05e3 }, /* hebrew_finalpe ืฃ HEBREW LETTER FINAL PE */
{ 0x0cf4, 0x05e4 }, /* hebrew_pe ืค HEBREW LETTER PE */
{ 0x0cf5, 0x05e5 }, /* hebrew_finalzade ืฅ HEBREW LETTER FINAL TSADI */
{ 0x0cf6, 0x05e6 }, /* hebrew_zade ืฆ HEBREW LETTER TSADI */
{ 0x0cf7, 0x05e7 }, /* hebrew_qoph ืง HEBREW LETTER QOF */
{ 0x0cf8, 0x05e8 }, /* hebrew_resh ืจ HEBREW LETTER RESH */
{ 0x0cf9, 0x05e9 }, /* hebrew_shin ืฉ HEBREW LETTER SHIN */
{ 0x0cfa, 0x05ea }, /* hebrew_taw ืช HEBREW LETTER TAV */
{ 0x0da1, 0x0e01 }, /* Thai_kokai เธ THAI CHARACTER KO KAI */
{ 0x0da2, 0x0e02 }, /* Thai_khokhai เธ‚ THAI CHARACTER KHO KHAI */
{ 0x0da3, 0x0e03 }, /* Thai_khokhuat เธƒ THAI CHARACTER KHO KHUAT */
{ 0x0da4, 0x0e04 }, /* Thai_khokhwai เธ„ THAI CHARACTER KHO KHWAI */
{ 0x0da5, 0x0e05 }, /* Thai_khokhon เธ… THAI CHARACTER KHO KHON */
{ 0x0da6, 0x0e06 }, /* Thai_khorakhang เธ† THAI CHARACTER KHO RAKHANG */
{ 0x0da7, 0x0e07 }, /* Thai_ngongu เธ‡ THAI CHARACTER NGO NGU */
{ 0x0da8, 0x0e08 }, /* Thai_chochan เธˆ THAI CHARACTER CHO CHAN */
{ 0x0da9, 0x0e09 }, /* Thai_choching เธ‰ THAI CHARACTER CHO CHING */
{ 0x0daa, 0x0e0a }, /* Thai_chochang เธŠ THAI CHARACTER CHO CHANG */
{ 0x0dab, 0x0e0b }, /* Thai_soso เธ‹ THAI CHARACTER SO SO */
{ 0x0dac, 0x0e0c }, /* Thai_chochoe เธŒ THAI CHARACTER CHO CHOE */
{ 0x0dad, 0x0e0d }, /* Thai_yoying เธ THAI CHARACTER YO YING */
{ 0x0dae, 0x0e0e }, /* Thai_dochada เธŽ THAI CHARACTER DO CHADA */
{ 0x0daf, 0x0e0f }, /* Thai_topatak เธ THAI CHARACTER TO PATAK */
{ 0x0db0, 0x0e10 }, /* Thai_thothan เธ THAI CHARACTER THO THAN */
{ 0x0db1, 0x0e11 }, /* Thai_thonangmontho เธ‘ THAI CHARACTER THO NANGMONTHO */
{ 0x0db2, 0x0e12 }, /* Thai_thophuthao เธ’ THAI CHARACTER THO PHUTHAO */
{ 0x0db3, 0x0e13 }, /* Thai_nonen เธ“ THAI CHARACTER NO NEN */
{ 0x0db4, 0x0e14 }, /* Thai_dodek เธ” THAI CHARACTER DO DEK */
{ 0x0db5, 0x0e15 }, /* Thai_totao เธ• THAI CHARACTER TO TAO */
{ 0x0db6, 0x0e16 }, /* Thai_thothung เธ– THAI CHARACTER THO THUNG */
{ 0x0db7, 0x0e17 }, /* Thai_thothahan เธ— THAI CHARACTER THO THAHAN */
{ 0x0db8, 0x0e18 }, /* Thai_thothong เธ˜ THAI CHARACTER THO THONG */
{ 0x0db9, 0x0e19 }, /* Thai_nonu เธ™ THAI CHARACTER NO NU */
{ 0x0dba, 0x0e1a }, /* Thai_bobaimai เธš THAI CHARACTER BO BAIMAI */
{ 0x0dbb, 0x0e1b }, /* Thai_popla เธ› THAI CHARACTER PO PLA */
{ 0x0dbc, 0x0e1c }, /* Thai_phophung เธœ THAI CHARACTER PHO PHUNG */
{ 0x0dbd, 0x0e1d }, /* Thai_fofa เธ THAI CHARACTER FO FA */
{ 0x0dbe, 0x0e1e }, /* Thai_phophan เธž THAI CHARACTER PHO PHAN */
{ 0x0dbf, 0x0e1f }, /* Thai_fofan เธŸ THAI CHARACTER FO FAN */
{ 0x0dc0, 0x0e20 }, /* Thai_phosamphao เธ  THAI CHARACTER PHO SAMPHAO */
{ 0x0dc1, 0x0e21 }, /* Thai_moma เธก THAI CHARACTER MO MA */
{ 0x0dc2, 0x0e22 }, /* Thai_yoyak เธข THAI CHARACTER YO YAK */
{ 0x0dc3, 0x0e23 }, /* Thai_rorua เธฃ THAI CHARACTER RO RUA */
{ 0x0dc4, 0x0e24 }, /* Thai_ru เธค THAI CHARACTER RU */
{ 0x0dc5, 0x0e25 }, /* Thai_loling เธฅ THAI CHARACTER LO LING */
{ 0x0dc6, 0x0e26 }, /* Thai_lu เธฆ THAI CHARACTER LU */
{ 0x0dc7, 0x0e27 }, /* Thai_wowaen เธง THAI CHARACTER WO WAEN */
{ 0x0dc8, 0x0e28 }, /* Thai_sosala เธจ THAI CHARACTER SO SALA */
{ 0x0dc9, 0x0e29 }, /* Thai_sorusi เธฉ THAI CHARACTER SO RUSI */
{ 0x0dca, 0x0e2a }, /* Thai_sosua เธช THAI CHARACTER SO SUA */
{ 0x0dcb, 0x0e2b }, /* Thai_hohip เธซ THAI CHARACTER HO HIP */
{ 0x0dcc, 0x0e2c }, /* Thai_lochula เธฌ THAI CHARACTER LO CHULA */
{ 0x0dcd, 0x0e2d }, /* Thai_oang เธญ THAI CHARACTER O ANG */
{ 0x0dce, 0x0e2e }, /* Thai_honokhuk เธฎ THAI CHARACTER HO NOKHUK */
{ 0x0dcf, 0x0e2f }, /* Thai_paiyannoi เธฏ THAI CHARACTER PAIYANNOI */
{ 0x0dd0, 0x0e30 }, /* Thai_saraa เธฐ THAI CHARACTER SARA A */
{ 0x0dd1, 0x0e31 }, /* Thai_maihanakat เธฑ THAI CHARACTER MAI HAN-AKAT */
{ 0x0dd2, 0x0e32 }, /* Thai_saraaa เธฒ THAI CHARACTER SARA AA */
{ 0x0dd3, 0x0e33 }, /* Thai_saraam เธณ THAI CHARACTER SARA AM */
{ 0x0dd4, 0x0e34 }, /* Thai_sarai เธด THAI CHARACTER SARA I */
{ 0x0dd5, 0x0e35 }, /* Thai_saraii เธต THAI CHARACTER SARA II */
{ 0x0dd6, 0x0e36 }, /* Thai_saraue เธถ THAI CHARACTER SARA UE */
{ 0x0dd7, 0x0e37 }, /* Thai_sarauee เธท THAI CHARACTER SARA UEE */
{ 0x0dd8, 0x0e38 }, /* Thai_sarau เธธ THAI CHARACTER SARA U */
{ 0x0dd9, 0x0e39 }, /* Thai_sarauu เธน THAI CHARACTER SARA UU */
{ 0x0dda, 0x0e3a }, /* Thai_phinthu เธบ THAI CHARACTER PHINTHU */
/* 0x0dde Thai_maihanakat_maitho ? ??? */
{ 0x0ddf, 0x0e3f }, /* Thai_baht เธฟ THAI CURRENCY SYMBOL BAHT */
{ 0x0de0, 0x0e40 }, /* Thai_sarae เน€ THAI CHARACTER SARA E */
{ 0x0de1, 0x0e41 }, /* Thai_saraae เน THAI CHARACTER SARA AE */
{ 0x0de2, 0x0e42 }, /* Thai_sarao เน‚ THAI CHARACTER SARA O */
{ 0x0de3, 0x0e43 }, /* Thai_saraaimaimuan เนƒ THAI CHARACTER SARA AI MAIMUAN */
{ 0x0de4, 0x0e44 }, /* Thai_saraaimaimalai เน„ THAI CHARACTER SARA AI MAIMALAI */
{ 0x0de5, 0x0e45 }, /* Thai_lakkhangyao เน… THAI CHARACTER LAKKHANGYAO */
{ 0x0de6, 0x0e46 }, /* Thai_maiyamok เน† THAI CHARACTER MAIYAMOK */
{ 0x0de7, 0x0e47 }, /* Thai_maitaikhu เน‡ THAI CHARACTER MAITAIKHU */
{ 0x0de8, 0x0e48 }, /* Thai_maiek เนˆ THAI CHARACTER MAI EK */
{ 0x0de9, 0x0e49 }, /* Thai_maitho เน‰ THAI CHARACTER MAI THO */
{ 0x0dea, 0x0e4a }, /* Thai_maitri เนŠ THAI CHARACTER MAI TRI */
{ 0x0deb, 0x0e4b }, /* Thai_maichattawa เน‹ THAI CHARACTER MAI CHATTAWA */
{ 0x0dec, 0x0e4c }, /* Thai_thanthakhat เนŒ THAI CHARACTER THANTHAKHAT */
{ 0x0ded, 0x0e4d }, /* Thai_nikhahit เน THAI CHARACTER NIKHAHIT */
{ 0x0df0, 0x0e50 }, /* Thai_leksun เน THAI DIGIT ZERO */
{ 0x0df1, 0x0e51 }, /* Thai_leknung เน‘ THAI DIGIT ONE */
{ 0x0df2, 0x0e52 }, /* Thai_leksong เน’ THAI DIGIT TWO */
{ 0x0df3, 0x0e53 }, /* Thai_leksam เน“ THAI DIGIT THREE */
{ 0x0df4, 0x0e54 }, /* Thai_leksi เน” THAI DIGIT FOUR */
{ 0x0df5, 0x0e55 }, /* Thai_lekha เน• THAI DIGIT FIVE */
{ 0x0df6, 0x0e56 }, /* Thai_lekhok เน– THAI DIGIT SIX */
{ 0x0df7, 0x0e57 }, /* Thai_lekchet เน— THAI DIGIT SEVEN */
{ 0x0df8, 0x0e58 }, /* Thai_lekpaet เน˜ THAI DIGIT EIGHT */
{ 0x0df9, 0x0e59 }, /* Thai_lekkao เน™ THAI DIGIT NINE */
{ 0x0ea1, 0x3131 }, /* Hangul_Kiyeog ใ„ฑ HANGUL LETTER KIYEOK */
{ 0x0ea2, 0x3132 }, /* Hangul_SsangKiyeog ใ„ฒ HANGUL LETTER SSANGKIYEOK */
{ 0x0ea3, 0x3133 }, /* Hangul_KiyeogSios ใ„ณ HANGUL LETTER KIYEOK-SIOS */
{ 0x0ea4, 0x3134 }, /* Hangul_Nieun ใ„ด HANGUL LETTER NIEUN */
{ 0x0ea5, 0x3135 }, /* Hangul_NieunJieuj ใ„ต HANGUL LETTER NIEUN-CIEUC */
{ 0x0ea6, 0x3136 }, /* Hangul_NieunHieuh ใ„ถ HANGUL LETTER NIEUN-HIEUH */
{ 0x0ea7, 0x3137 }, /* Hangul_Dikeud ใ„ท HANGUL LETTER TIKEUT */
{ 0x0ea8, 0x3138 }, /* Hangul_SsangDikeud ใ„ธ HANGUL LETTER SSANGTIKEUT */
{ 0x0ea9, 0x3139 }, /* Hangul_Rieul ใ„น HANGUL LETTER RIEUL */
{ 0x0eaa, 0x313a }, /* Hangul_RieulKiyeog ใ„บ HANGUL LETTER RIEUL-KIYEOK */
{ 0x0eab, 0x313b }, /* Hangul_RieulMieum ใ„ป HANGUL LETTER RIEUL-MIEUM */
{ 0x0eac, 0x313c }, /* Hangul_RieulPieub ใ„ผ HANGUL LETTER RIEUL-PIEUP */
{ 0x0ead, 0x313d }, /* Hangul_RieulSios ใ„ฝ HANGUL LETTER RIEUL-SIOS */
{ 0x0eae, 0x313e }, /* Hangul_RieulTieut ใ„พ HANGUL LETTER RIEUL-THIEUTH */
{ 0x0eaf, 0x313f }, /* Hangul_RieulPhieuf ใ„ฟ HANGUL LETTER RIEUL-PHIEUPH */
{ 0x0eb0, 0x3140 }, /* Hangul_RieulHieuh ใ…€ HANGUL LETTER RIEUL-HIEUH */
{ 0x0eb1, 0x3141 }, /* Hangul_Mieum ใ… HANGUL LETTER MIEUM */
{ 0x0eb2, 0x3142 }, /* Hangul_Pieub ใ…‚ HANGUL LETTER PIEUP */
{ 0x0eb3, 0x3143 }, /* Hangul_SsangPieub ใ…ƒ HANGUL LETTER SSANGPIEUP */
{ 0x0eb4, 0x3144 }, /* Hangul_PieubSios ใ…„ HANGUL LETTER PIEUP-SIOS */
{ 0x0eb5, 0x3145 }, /* Hangul_Sios ใ…… HANGUL LETTER SIOS */
{ 0x0eb6, 0x3146 }, /* Hangul_SsangSios ใ…† HANGUL LETTER SSANGSIOS */
{ 0x0eb7, 0x3147 }, /* Hangul_Ieung ใ…‡ HANGUL LETTER IEUNG */
{ 0x0eb8, 0x3148 }, /* Hangul_Jieuj ใ…ˆ HANGUL LETTER CIEUC */
{ 0x0eb9, 0x3149 }, /* Hangul_SsangJieuj ใ…‰ HANGUL LETTER SSANGCIEUC */
{ 0x0eba, 0x314a }, /* Hangul_Cieuc ใ…Š HANGUL LETTER CHIEUCH */
{ 0x0ebb, 0x314b }, /* Hangul_Khieuq ใ…‹ HANGUL LETTER KHIEUKH */
{ 0x0ebc, 0x314c }, /* Hangul_Tieut ใ…Œ HANGUL LETTER THIEUTH */
{ 0x0ebd, 0x314d }, /* Hangul_Phieuf ใ… HANGUL LETTER PHIEUPH */
{ 0x0ebe, 0x314e }, /* Hangul_Hieuh ใ…Ž HANGUL LETTER HIEUH */
{ 0x0ebf, 0x314f }, /* Hangul_A ใ… HANGUL LETTER A */
{ 0x0ec0, 0x3150 }, /* Hangul_AE ใ… HANGUL LETTER AE */
{ 0x0ec1, 0x3151 }, /* Hangul_YA ใ…‘ HANGUL LETTER YA */
{ 0x0ec2, 0x3152 }, /* Hangul_YAE ใ…’ HANGUL LETTER YAE */
{ 0x0ec3, 0x3153 }, /* Hangul_EO ใ…“ HANGUL LETTER EO */
{ 0x0ec4, 0x3154 }, /* Hangul_E ใ…” HANGUL LETTER E */
{ 0x0ec5, 0x3155 }, /* Hangul_YEO ใ…• HANGUL LETTER YEO */
{ 0x0ec6, 0x3156 }, /* Hangul_YE ใ…– HANGUL LETTER YE */
{ 0x0ec7, 0x3157 }, /* Hangul_O ใ…— HANGUL LETTER O */
{ 0x0ec8, 0x3158 }, /* Hangul_WA ใ…˜ HANGUL LETTER WA */
{ 0x0ec9, 0x3159 }, /* Hangul_WAE ใ…™ HANGUL LETTER WAE */
{ 0x0eca, 0x315a }, /* Hangul_OE ใ…š HANGUL LETTER OE */
{ 0x0ecb, 0x315b }, /* Hangul_YO ใ…› HANGUL LETTER YO */
{ 0x0ecc, 0x315c }, /* Hangul_U ใ…œ HANGUL LETTER U */
{ 0x0ecd, 0x315d }, /* Hangul_WEO ใ… HANGUL LETTER WEO */
{ 0x0ece, 0x315e }, /* Hangul_WE ใ…ž HANGUL LETTER WE */
{ 0x0ecf, 0x315f }, /* Hangul_WI ใ…Ÿ HANGUL LETTER WI */
{ 0x0ed0, 0x3160 }, /* Hangul_YU ใ…  HANGUL LETTER YU */
{ 0x0ed1, 0x3161 }, /* Hangul_EU ใ…ก HANGUL LETTER EU */
{ 0x0ed2, 0x3162 }, /* Hangul_YI ใ…ข HANGUL LETTER YI */
{ 0x0ed3, 0x3163 }, /* Hangul_I ใ…ฃ HANGUL LETTER I */
{ 0x0ed4, 0x11a8 }, /* Hangul_J_Kiyeog แ†จ HANGUL JONGSEONG KIYEOK */
{ 0x0ed5, 0x11a9 }, /* Hangul_J_SsangKiyeog แ†ฉ HANGUL JONGSEONG SSANGKIYEOK */
{ 0x0ed6, 0x11aa }, /* Hangul_J_KiyeogSios แ†ช HANGUL JONGSEONG KIYEOK-SIOS */
{ 0x0ed7, 0x11ab }, /* Hangul_J_Nieun แ†ซ HANGUL JONGSEONG NIEUN */
{ 0x0ed8, 0x11ac }, /* Hangul_J_NieunJieuj แ†ฌ HANGUL JONGSEONG NIEUN-CIEUC */
{ 0x0ed9, 0x11ad }, /* Hangul_J_NieunHieuh แ†ญ HANGUL JONGSEONG NIEUN-HIEUH */
{ 0x0eda, 0x11ae }, /* Hangul_J_Dikeud แ†ฎ HANGUL JONGSEONG TIKEUT */
{ 0x0edb, 0x11af }, /* Hangul_J_Rieul แ†ฏ HANGUL JONGSEONG RIEUL */
{ 0x0edc, 0x11b0 }, /* Hangul_J_RieulKiyeog แ†ฐ HANGUL JONGSEONG RIEUL-KIYEOK */
{ 0x0edd, 0x11b1 }, /* Hangul_J_RieulMieum แ†ฑ HANGUL JONGSEONG RIEUL-MIEUM */
{ 0x0ede, 0x11b2 }, /* Hangul_J_RieulPieub แ†ฒ HANGUL JONGSEONG RIEUL-PIEUP */
{ 0x0edf, 0x11b3 }, /* Hangul_J_RieulSios แ†ณ HANGUL JONGSEONG RIEUL-SIOS */
{ 0x0ee0, 0x11b4 }, /* Hangul_J_RieulTieut แ†ด HANGUL JONGSEONG RIEUL-THIEUTH */
{ 0x0ee1, 0x11b5 }, /* Hangul_J_RieulPhieuf แ†ต HANGUL JONGSEONG RIEUL-PHIEUPH */
{ 0x0ee2, 0x11b6 }, /* Hangul_J_RieulHieuh แ†ถ HANGUL JONGSEONG RIEUL-HIEUH */
{ 0x0ee3, 0x11b7 }, /* Hangul_J_Mieum แ†ท HANGUL JONGSEONG MIEUM */
{ 0x0ee4, 0x11b8 }, /* Hangul_J_Pieub แ†ธ HANGUL JONGSEONG PIEUP */
{ 0x0ee5, 0x11b9 }, /* Hangul_J_PieubSios แ†น HANGUL JONGSEONG PIEUP-SIOS */
{ 0x0ee6, 0x11ba }, /* Hangul_J_Sios แ†บ HANGUL JONGSEONG SIOS */
{ 0x0ee7, 0x11bb }, /* Hangul_J_SsangSios แ†ป HANGUL JONGSEONG SSANGSIOS */
{ 0x0ee8, 0x11bc }, /* Hangul_J_Ieung แ†ผ HANGUL JONGSEONG IEUNG */
{ 0x0ee9, 0x11bd }, /* Hangul_J_Jieuj แ†ฝ HANGUL JONGSEONG CIEUC */
{ 0x0eea, 0x11be }, /* Hangul_J_Cieuc แ†พ HANGUL JONGSEONG CHIEUCH */
{ 0x0eeb, 0x11bf }, /* Hangul_J_Khieuq แ†ฟ HANGUL JONGSEONG KHIEUKH */
{ 0x0eec, 0x11c0 }, /* Hangul_J_Tieut แ‡€ HANGUL JONGSEONG THIEUTH */
{ 0x0eed, 0x11c1 }, /* Hangul_J_Phieuf แ‡ HANGUL JONGSEONG PHIEUPH */
{ 0x0eee, 0x11c2 }, /* Hangul_J_Hieuh แ‡‚ HANGUL JONGSEONG HIEUH */
{ 0x0eef, 0x316d }, /* Hangul_RieulYeorinHieuh ใ…ญ HANGUL LETTER RIEUL-YEORINHIEUH */
{ 0x0ef0, 0x3171 }, /* Hangul_SunkyeongeumMieum ใ…ฑ HANGUL LETTER KAPYEOUNMIEUM */
{ 0x0ef1, 0x3178 }, /* Hangul_SunkyeongeumPieub ใ…ธ HANGUL LETTER KAPYEOUNPIEUP */
{ 0x0ef2, 0x317f }, /* Hangul_PanSios ใ…ฟ HANGUL LETTER PANSIOS */
{ 0x0ef3, 0x3181 }, /* Hangul_KkogjiDalrinIeung ใ† HANGUL LETTER YESIEUNG */
{ 0x0ef4, 0x3184 }, /* Hangul_SunkyeongeumPhieuf ใ†„ HANGUL LETTER KAPYEOUNPHIEUPH */
{ 0x0ef5, 0x3186 }, /* Hangul_YeorinHieuh ใ†† HANGUL LETTER YEORINHIEUH */
{ 0x0ef6, 0x318d }, /* Hangul_AraeA ใ† HANGUL LETTER ARAEA */
{ 0x0ef7, 0x318e }, /* Hangul_AraeAE ใ†Ž HANGUL LETTER ARAEAE */
{ 0x0ef8, 0x11eb }, /* Hangul_J_PanSios แ‡ซ HANGUL JONGSEONG PANSIOS */
{ 0x0ef9, 0x11f0 }, /* Hangul_J_KkogjiDalrinIeung แ‡ฐ HANGUL JONGSEONG YESIEUNG */
{ 0x0efa, 0x11f9 }, /* Hangul_J_YeorinHieuh แ‡น HANGUL JONGSEONG YEORINHIEUH */
{ 0x0eff, 0x20a9 }, /* Korean_Won โ‚ฉ WON SIGN */
{ 0x13a4, 0x20ac }, /* Euro โ‚ฌ EURO SIGN */
{ 0x13bc, 0x0152 }, /* OE ล’ LATIN CAPITAL LIGATURE OE */
{ 0x13bd, 0x0153 }, /* oe ล“ LATIN SMALL LIGATURE OE */
{ 0x13be, 0x0178 }, /* Ydiaeresis ลธ LATIN CAPITAL LETTER Y WITH DIAERESIS */
{ 0x20ac, 0x20ac }, /* EuroSign โ‚ฌ EURO SIGN */
};
quint16 HelperX11::getKeysym(const QChar& c){
quint16 unicode=c.unicode();
/* first check for Latin-1 characters (1:1 mapping) */
if ((unicode >= 0x0020 && unicode <= 0x007e) ||
(unicode >= 0x00a0 && unicode <= 0x00ff))
return unicode;
/*if((unicode & 0xFF000000)==0x00)
return (unicode & 0x00FFFFFF)|0x01FFFFFF;*/
int MapSize=sizeof(KeysymMap);
for(int i=0; i<MapSize;i++){
if(unicode==KeysymMap[i][0])
return KeysymMap[i][1];
}
return 0;
}

@ -0,0 +1,57 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef HELPERX11_H
#define HELPERX11_H
#include "AutoType.h"
#include <QChar>
#define XK_MISCELLANY
#define XK_XKB_KEYS
#define XK_3270
#define XK_CURRENCY
#include <X11/Xlib.h>
#include <X11/extensions/XTest.h>
#include <X11/keysymdef.h>
class HelperX11{
public:
static int getModifiers(Display *d,KeySym keysym, int keycode);
static void pressModifiers(Display*,int mods,bool Press=true);
static void releaseModifiers(Display*,int mods);
static quint16 getKeysym(const QChar& c);
#ifdef GLOBAL_AUTOTYPE
static int getShortcutModifierMask(const Shortcut& s);
#endif
static unsigned int keyboardModifiers(Display* d);
static void startCatchErrors();
static void stopCatchErrors();
inline static bool errorOccurred() { return pErrorOccurred; };
private:
static int x11ErrorHandler(Display* display, XErrorEvent* error);
static int (*oldHandler) (Display*, XErrorEvent*);
static bool catchErrors;
static bool pErrorOccurred;
static const quint16 KeysymMap[][2];
};
#endif // HELPERX11_H

@ -21,8 +21,8 @@
#define _SECSTRING_H_
#include <QByteArray>
#include <qstring.h>
#include <qglobal.h>
#include <QString>
#include <QGlobalStatic>
#include "crypto/arcfour.h"
//! QString based class with in-memory encryption of its content.

@ -0,0 +1,118 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "ShortcutWidget.h"
#include <QKeyEvent>
#include <QX11Info>
#include <QPalette>
#include "HelperX11.h"
#if defined(GLOBAL_AUTOTYPE) && defined(Q_WS_X11)
ShortcutWidget::ShortcutWidget(QWidget* parent) : QLineEdit(parent), lock(false), failed(false){
}
Shortcut ShortcutWidget::shortcut(){
if (lock)
return pShortcut;
else
return Shortcut();
}
void ShortcutWidget::setShortcut(const Shortcut& s){
lock = true;
displayShortcut(s.key, false, s.ctrl, s.shift, s.alt, s.altgr, s.win);
}
void ShortcutWidget::keyPressEvent(QKeyEvent* event){
keyEvent(event, false);
event->accept();
}
void ShortcutWidget::keyReleaseEvent(QKeyEvent* event){
keyEvent(event, true);
event->accept();
}
void ShortcutWidget::keyEvent(QKeyEvent* event, bool release){
if (release && lock)
return;
unsigned int mods = HelperX11::keyboardModifiers(QX11Info::display());
displayShortcut(event->nativeVirtualKey(), release, mods&ControlMask, mods&ShiftMask, mods&Mod1Mask, mods&Mod5Mask, mods&Mod4Mask);
}
void ShortcutWidget::displayShortcut(quint32 key, bool release, bool ctrl, bool shift, bool alt, bool altgr, bool win){
QString text;
if (ctrl)
text.append(tr("Ctrl")).append(" + ");
if (shift)
text.append(tr("Shift")).append(" + ");
if (alt)
text.append(tr("Alt")).append(" + ");
if (altgr)
text.append(tr("AltGr")).append(" + ");
if (win)
text.append(tr("Win")).append(" + ");
if ( !release && (key<XK_Shift_L || key>XK_Hyper_R) && (key<XK_ISO_Lock || key>XK_ISO_Last_Group_Lock) ){
KeySym keysym = XKeycodeToKeysym(QX11Info::display(), XKeysymToKeycode(QX11Info::display(),key), 0);
if (keysym>=0xfd00 && keysym<=0xffff){
text.append(XKeysymToString(keysym));
}
else{
text.append(static_cast<quint32>(keysym));
}
lock = ctrl || shift || alt || altgr || win;
if (lock){
pShortcut.key = keysym;
pShortcut.ctrl = ctrl;
pShortcut.shift = shift;
pShortcut.alt = alt;
pShortcut.altgr = altgr;
pShortcut.win = win;
failed = AutoType::registerGlobalShortcut(pShortcut);
if (!failed)
setBackgroundColor(QColor(255, 150, 150));
else
setBackgroundColor(Qt::white);
}
}
else {
lock = false;
if (failed)
setBackgroundColor(Qt::white);
}
setText(text);
}
void ShortcutWidget::setBackgroundColor(const QColor& c){
QPalette p( palette() );
p.setColor(backgroundRole(), c);
setPalette(p);
}
#else
ShortcutWidget::ShortcutWidget(QWidget* parent) : QLineEdit(parent){
}
#endif

@ -0,0 +1,49 @@
/***************************************************************************
* Copyright (C) 2005-2008 by Felix Geyer *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef SHORTCUT_WIDGET_H
#define SHORTCUT_WIDGET_H
#include <QLineEdit>
#include "lib/AutoType.h"
class ShortcutWidget : public QLineEdit{
Q_OBJECT
public:
ShortcutWidget(QWidget* parent = 0);
#if defined(GLOBAL_AUTOTYPE) && defined(Q_WS_X11)
Shortcut shortcut();
void setShortcut(const Shortcut& s);
protected:
void keyPressEvent(QKeyEvent* event);
void keyReleaseEvent(QKeyEvent* event);
private:
void keyEvent(QKeyEvent* event, bool release);
void displayShortcut(quint32 key, bool release, bool ctrl, bool shift, bool alt, bool altgr, bool win);
void setBackgroundColor(const QColor& c);
bool lock;
bool failed;
Shortcut pShortcut;
#endif
};
#endif // SHORTCUT_WIDGET_H

@ -17,51 +17,24 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <QFile>
#include "bookmarks.h"
#include "main.h"
#define CSTR(x)(x.toUtf8().data())
#include "KpxConfig.h"
QList<KpxBookmarks::BookmarkEntry> KpxBookmarks::Bookmarks;
QString KpxBookmarks::filename;
bool KpxBookmarks::load(const QString& _filename){
/*
Fileformat:
"Title1" "Path1"\n
"Title2" "Path2"\n
...
*/
void KpxBookmarks::load(){
if (!config->settings.contains("Bookmarks/size") || config->settings.value("Bookmarks/size").toInt()==0)
return;
filename=_filename;
QFile file(filename);
if(!file.exists()){
return true;
}
if(!file.open(QIODevice::ReadOnly)){
qWarning("Reading bookmarks failed: %s",CSTR(decodeFileError(file.error())));
return false;
}
QString content=QString::fromUtf8(file.readAll());
file.close();
content.replace("\r","");
QStringList lines=content.split("\n");
for(int i=0;i<lines.size();i++){
if(lines[i].simplified()==QString()) continue; //skip empty line
if(lines[i].count("\"")!=4){
qWarning("Bookmark parsing error: Skipping line %i.",i);
continue;
}
int a_title=lines[i].indexOf("\"");
int b_title=lines[i].indexOf("\"",a_title+1);
int a_path=lines[i].indexOf("\"",b_title+1);
int b_path=lines[i].indexOf("\"",a_path+1);
int size = config->settings.value("Bookmarks/size").toInt();
for(int i=1;i<=size;i++){
BookmarkEntry entry;
entry.Title=lines[i].mid(a_title+1,b_title-a_title-1);
entry.Path=lines[i].mid(a_path+1,b_path-a_path-1);
Bookmarks << entry;
entry.Title = config->settings.value( QString("Bookmarks/%1/Title").arg(i) ).toString();
entry.Path = config->settings.value( QString("Bookmarks/%1/Path").arg(i) ).toString();
if (!entry.Title.isNull() && !entry.Path.isNull())
Bookmarks << entry;
}
return true;
}
int KpxBookmarks::count(){
@ -88,21 +61,19 @@ int KpxBookmarks::add(const QString& Title,const QString& Path){
}
bool KpxBookmarks::save(){
QFile file(filename);
if(!file.exists()){
return false;
}
if(!file.open(QIODevice::WriteOnly | QIODevice::Truncate)){
qWarning("Writing bookmarks failed: %s",CSTR(decodeFileError(file.error())));
return false;
for (int i=0;i<count();i++){
config->settings.setValue( QString("Bookmarks/%1/Title").arg(i+1), Bookmarks[i].Title );
config->settings.setValue( QString("Bookmarks/%1/Path").arg(i+1), Bookmarks[i].Path );
}
QString data;
for(int i=0;i<Bookmarks.size();i++){
data+=QString("\"%1\" \"%2\"\n").arg(Bookmarks[i].Title)
.arg(Bookmarks[i].Path);
config->settings.setValue("Bookmarks/size", count());
// remove orphaned entries
int i = count()+1;
while ( config->settings.contains( QString("Bookmarks/%1/Title").arg(i) ) ){
config->settings.remove( QString("Bookmarks/%1/Title").arg(i) );
config->settings.remove( QString("Bookmarks/%1/Path").arg(i) );
i++;
}
file.write(data.toUtf8());
file.close();
}
void KpxBookmarks::remove(int index){
@ -120,8 +91,8 @@ void KpxBookmarks::edit(const QString& Title,const QString& Path,int i){
void KpxBookmarks::resort(QList<int> order){
QList<BookmarkEntry> NewList;
for(int i=0;i<order.size();i++){
NewList << Bookmarks[order[i]];
NewList << Bookmarks[order[i]];
}
Bookmarks=NewList;
save();
}
}

@ -24,7 +24,7 @@
class KpxBookmarks {
public:
static bool load(const QString& file);
static void load();
static int add(const QString& Title,const QString& Path);
static void remove(int id);
static void edit(const QString& Title,const QString& Path, int Index);
@ -46,4 +46,4 @@ class KpxBookmarks {
};
#endif
#endif

@ -19,8 +19,8 @@
***************************************************************************/
#include <iostream>
#include <fstream>
#include <qdatetime.h>
#include <qobject.h>
#include <QDateTime>
#include <QObject>
#include "random.h"
using namespace std;

@ -20,26 +20,27 @@
***************************************************************************/
#include <iostream>
#include <qapplication.h>
#include <qlibrary.h>
#include <qlocale.h>
#include <qdir.h>
#include <QLibraryInfo>
#include <QLocale>
#include <QDir>
#include <QMessageBox>
#include <QTranslator>
#include <QPainter>
#include <QImage>
#include <QStyleFactory>
#include <QProcess>
#include <QLibraryInfo>
#include <QPluginLoader>
#include <QDesktopServices>
#include <QUrl>
/*
#include <QLibary>
#include <QPluginLoader>
#include "plugins/interfaces/IFileDialog.h"
#include "plugins/interfaces/IKdeInit.h"
#include "plugins/interfaces/IGnomeInit.h"
#include "plugins/interfaces/IIconTheme.h"
#include "lib/FileDialogs.h"
*/
#include "main.h"
#include "lib/FileDialogs.h"
@ -48,18 +49,11 @@
#include "Kdb3Database.h"
#include "mainwindow.h"
#include "crypto/yarrow.h"
using namespace std;
#ifdef Q_WS_X11
#include <X11/extensions/XTest.h>
#define XK_LATIN1
#define XK_MISCELLANY
#define XK_XKB_KEYS
#include <X11/keysymdef.h>
#include <X11/Xlib.h>
#if defined(Q_WS_X11) && defined(GLOBAL_AUTOTYPE)
#include "Application_X11.h"
#endif
#define CSTR(x)(x.toUtf8().data())
using namespace std;
QHash<QString,QPixmap*>PixmapCache;
QHash<QString,QIcon*>IconCache;
@ -71,40 +65,22 @@ bool TrActive;
QString DetailViewTemplate;
QPixmap* EntryIcons;
IIconTheme* IconLoader=NULL;
//IIconTheme* IconLoader=NULL; //TODO plugins
char ** argv;
inline void loadImages();
inline void parseCmdLineArgs(int argc, char** argv,QString &ArgFile,QString& ArgCfg,QString& ArgLang);
inline void parseCmdLineArgs(int argc, char** argv,QString &ArgFile,QString& ArgCfg,QString& ArgLang,bool& ArgMin,bool& ArgLock);
bool loadTranslation(QTranslator* tr,const QString& prefix,const QString& LocaleCode,const QStringList& SearchPaths);
void test_getAllWindowTitles(){
#ifdef Q_WS_X11
Display* pDisplay = XOpenDisplay( NULL );
Window r,p;
Window* c;
unsigned int num_ch=0;
XQueryTree(pDisplay,DefaultRootWindow(pDisplay),&r,&p,&c,&num_ch);
qDebug("%u",num_ch);
for(int i=0;i<num_ch;i++){
int num_prop=0;
Atom* atom=XListProperties(pDisplay,c[i],&num_prop);
for(int p=0;p<num_prop;p++){
qDebug("%i %i: %s",i,p,XGetAtomName(pDisplay,atom[p]));
}
XFree(atom);
}
#endif
}
int main(int argc, char **_argv)
{
argv=_argv;
QString ArgFile,ArgCfg,ArgLang,IniFilename;
QApplication* app=NULL;
AppDir=applicationDirPath();
parseCmdLineArgs(argc,argv,ArgFile,ArgCfg,ArgLang);
bool ArgMin = false;
bool ArgLock = false;
parseCmdLineArgs(argc,argv,ArgFile,ArgCfg,ArgLang,ArgMin,ArgLock);
qDebug(CSTR(QDir::current().absolutePath()));
//Load Config
@ -123,8 +99,8 @@ int main(int argc, char **_argv)
config = new KpxConfig(IniFilename);
fileDlgHistory.load();
//Plugins
if(config->integrPlugin()!=KpxConfig::NoIntegr){
// TODO Plugins
/*if(config->integrPlugin()!=KpxConfig::NoIntegr){
QString LibName="libkeepassx-";
if(config->integrPlugin()==KpxConfig::KDE)
LibName+="kde.so";
@ -165,8 +141,13 @@ int main(int argc, char **_argv)
qWarning(CSTR(QString("Could not load desktop integration plugin: File '%1' not found.").arg(LibName)));
PluginLoadError=QObject::tr("Could not locate library file.");
}
}
if(!app) QApplication* app=new QApplication(argc,argv);
}*/
#if defined(Q_WS_X11) && defined(GLOBAL_AUTOTYPE)
if(!app) new KeepassApplication(argc,argv);
#else
if(!app) new QApplication(argc,argv);
#endif
//Internationalization
@ -184,11 +165,13 @@ int main(int argc, char **_argv)
if(loadTranslation(translator,"keepass-",loc.name(),QStringList()
<< app->applicationDirPath()+"/../share/keepass/i18n/"
<< QDir::homePath()+"/.keepassx/" ))
{app->installTranslator(translator);
TrActive=true;}
{
app->installTranslator(translator);
TrActive=true;
}
else{
if(loc.name()!="en_US")
qWarning(QString("Kpx: No Translation found for '%1 (%2)'using 'English (UnitedStates)'")
qWarning(QString("Kpx: No Translation found for '%1 (%2)' using 'English (UnitedStates)'")
.arg(QLocale::languageToString(loc.language()))
.arg(QLocale::countryToString(loc.country())).toAscii());
delete translator;
@ -202,42 +185,25 @@ int main(int argc, char **_argv)
app->installTranslator(qtTranslator);
else{
if(loc.name()!="en_US")
qWarning(QString("Qt: No Translation found for '%1 (%2)'using 'English (UnitedStates)'")
qWarning(QString("Qt: No Translation found for '%1 (%2)' using 'English (UnitedStates)'")
.arg(QLocale::languageToString(loc.language()))
.arg(QLocale::countryToString(loc.country())).toAscii());
delete qtTranslator;
}
QFile templ(QDir::homePath()+"/.keepassx/detailview-template.html"); ///FIXME ArgCfg
if(templ.open(QIODevice::ReadOnly)){
DetailViewTemplate=QString::fromUtf8(templ.readAll());
templ.close();
}
else loadDefaultDetailViewTemplate();
DetailViewTemplate=config->detailViewTemplate();
loadImages();
KpxBookmarks::load(QDir::homePath()+"/.keepassx/bookmarks");
KpxBookmarks::load();
initYarrow(); //init random number generator
SecString::generateSessionKey();
int r=0;
KeepassMainWindow *mainWin = new KeepassMainWindow(ArgFile);
if(mainWin->Start){
mainWin->show();
r=app->exec();
}
QApplication::setQuitOnLastWindowClosed(false);
KeepassMainWindow *mainWin = new KeepassMainWindow(ArgFile,ArgMin,ArgLock);
int r=app->exec();
delete mainWin;
if(templ.open(QIODevice::WriteOnly)){
templ.write(DetailViewTemplate.toUtf8());
templ.close();
}
else{
qWarning("Failed to save detail view template: %s",decodeFileError(templ.error()).toUtf8().data());
}
fileDlgHistory.save();
delete app;
delete config;
@ -245,34 +211,6 @@ int main(int argc, char **_argv)
}
void loadDefaultDetailViewTemplate(){
QFile templ(":/default-detailview.html");
templ.open(QIODevice::ReadOnly);
DetailViewTemplate=QString::fromUtf8(templ.readAll());
templ.close();
DetailViewTemplate.replace("Group",QCoreApplication::translate("DetailViewTemplate","Group"));
DetailViewTemplate.replace("Title",QCoreApplication::translate("DetailViewTemplate","Title"));
DetailViewTemplate.replace("Username",QCoreApplication::translate("DetailViewTemplate","Username"));
DetailViewTemplate.replace("Password",QCoreApplication::translate("DetailViewTemplate","Password"));
DetailViewTemplate.replace("URL",QCoreApplication::translate("DetailViewTemplate","URL"));
DetailViewTemplate.replace("Creation",QCoreApplication::translate("DetailViewTemplate","Creation"));
DetailViewTemplate.replace("Last Access",QCoreApplication::translate("DetailViewTemplate","Last Access"));
DetailViewTemplate.replace("Last Modification",QCoreApplication::translate("DetailViewTemplate","Last Modification"));
DetailViewTemplate.replace("Expiration",QCoreApplication::translate("DetailViewTemplate","Expiration"));
DetailViewTemplate.replace("Comment",QCoreApplication::translate("DetailViewTemplate","Comment"));
}
//obsolete
void createBanner(QLabel *Banner,const QPixmap* symbol,QString text){
QPixmap Pixmap;
createBanner(&Pixmap,symbol,text
,Banner->width()
,config->bannerColor1()
,config->bannerColor2()
,config->bannerTextColor());
Banner->setPixmap(Pixmap);
}
void createBanner(QPixmap* Pixmap,const QPixmap* IconAlpha,const QString& Text,int Width){
createBanner(Pixmap,IconAlpha,Text,Width,config->bannerColor1(),config->bannerColor2(),config->bannerTextColor());
}
@ -317,37 +255,62 @@ QString decodeFileError(QFile::FileError Code){
case QFile::PermissionsError: return QApplication::translate("FileErrors","The file could not be accessed.");
case QFile::CopyError: return QApplication::translate("FileErrors","The file could not be copied.");
}
return QString();
}
void openBrowser(IEntryHandle* entry){
QString url = entry->url();
url.replace("{TITLE}", entry->title(), Qt::CaseInsensitive);
url.replace("{USERNAME}", entry->username(), Qt::CaseInsensitive);
if (url.contains("{PASSWORD}",Qt::CaseInsensitive)){
SecString password=entry->password();
password.unlock();
url.replace("{PASSWORD}", password, Qt::CaseInsensitive);
}
openBrowser(url);
}
void openBrowser(QString UrlString){
void openBrowser(const QString& UrlString){
if (UrlString.startsWith("cmd://") && UrlString.length()>6){
QProcess::startDetached(UrlString.right(UrlString.length()-6));
return;
}
QUrl url(UrlString);
if(url.scheme().isEmpty())
url=QUrl("http://"+UrlString);
if(config->urlCmd().isEmpty()){
if(config->urlCmdDef()){
QDesktopServices::openUrl(url);
}
else{
QStringList args=config->urlCmd().arg(url.toString()).split(' ');
QString cmd=args.takeFirst();
QProcess::startDetached(cmd,args);
QByteArray UrlEncoded = url.toEncoded();
QString browser = config->urlCmd();
if (browser.contains("%u", Qt::CaseInsensitive))
browser.replace("%u", UrlEncoded, Qt::CaseInsensitive);
else if (browser.contains("%1"))
browser.replace("%1", UrlEncoded);
else
browser.append(" ").append(UrlEncoded);
QProcess::startDetached(browser);
}
}
///TODO 0.2.3 remove
void loadImg(QString name,QPixmap& Img){
if(Img.load(AppDir+"/../share/keepass/icons/"+name)==false){
if(Img.load(AppDir+"/share/"+name)==false){
QMessageBox::critical(0,QObject::tr("Error"),QObject::tr("File '%1' could not be found.")
.arg(name),QObject::tr("OK"),0,0,2,1);
exit(1);
}}
if(Img.load(AppDir+"/../share/keepass/icons/"+name)==false){
if(Img.load(AppDir+"/share/"+name)==false){
QMessageBox::critical(0,QApplication::translate("Main","Error"),
QApplication::translate("Main","File '%1' could not be found.")
.arg(name),QApplication::translate("Main","OK"),0,0,2,1);
exit(1);
}
}
}
///TODO 0.2.3 remove
void loadImages(){
bool small=true;
QString ThemeDir=AppDir+"/../share/keepass/icons/nuvola/32x32";
QPixmap tmpImg;
loadImg("clientic.png",tmpImg);
EntryIcons=new QPixmap[BUILTIN_ICONS];
@ -361,7 +324,8 @@ const QIcon& getIcon(const QString& name){
if(CachedIcon)
return *CachedIcon;
QIcon* NewIcon=NULL;
if(IconLoader){
//TODO plugins
/*if(IconLoader){
NewIcon=new QIcon(IconLoader->getIcon(name));
if(NewIcon->isNull()){
delete NewIcon;
@ -369,7 +333,7 @@ const QIcon& getIcon(const QString& name){
}
else
IconCache.insert(name,NewIcon);
}
}*/
if(!NewIcon)
{
QFileInfo IconFile(AppDir+"/../share/keepass/icons/"+name+".png");
@ -399,39 +363,45 @@ const QPixmap* getPixmap(const QString& name){
bool loadTranslation(QTranslator* tr,const QString& prefix,const QString& loc,const QStringList& paths){
for(int i=0;i<paths.size();i++)
if(tr->load(prefix+loc+".qm",paths[i])) return true;
for(int i=0;i<paths.size();i++){
QDir dir(paths[i]);
QStringList TrFiles=dir.entryList(QStringList()<<"*.qm",QDir::Files);
for(int j=0;j<TrFiles.size();j++){
if(TrFiles[j].left(prefix.length()+2)==prefix+loc.left(2)){
if(tr->load(TrFiles[j],paths[i]))return true;
for(int i=0;i<paths.size();i++)
if(tr->load(prefix+loc+".qm",paths[i])) return true;
for(int i=0;i<paths.size();i++){
QDir dir(paths[i]);
QStringList TrFiles=dir.entryList(QStringList()<<"*.qm",QDir::Files);
for(int j=0;j<TrFiles.size();j++){
if(TrFiles[j].left(prefix.length()+2)==prefix+loc.left(2)){
if(tr->load(TrFiles[j],paths[i]))return true;
}
}
}
return false;
}
return false;
}
void printHelp(){
cout << "KeePassX" << APP_VERSION << endl;
cout << "Usage: keepass [Filename] [Options]" << endl;
cout << " -help This Help" << endl;
cout << " -cfg <CONFIG> Use specified file for loading/saving the configuration." << endl;
cout << " -min Start minimized." << endl;
cout << " -lock Start locked." << endl;
cout << " -lang <LOCALE> Use specified language instead of systems default." << endl;
cout << " <LOCALE> is the ISO-639 language code with or without ISO-3166 country code" << endl;
cout << " Examples: de German" << endl;
cout << " de_CH German(Switzerland)"<<endl;
cout << " pt_BR Portuguese(Brazil)"<<endl;
}
void parseCmdLineArgs(int argc, char** argv,QString &ArgFile,QString& ArgCfg,QString& ArgLang){
void parseCmdLineArgs(int argc, char** argv,QString &ArgFile,QString& ArgCfg,QString& ArgLang,bool& ArgMin, bool& ArgLock){
if(argc>1){
int i=1;
int i=1;
if(argv[i][0]!='-'){
ArgFile=QString::fromUtf8(argv[i]);
i++; }
for(i; i<argc;i++){
i++;
}
for(; i<argc; i++){
if(QString(argv[i])=="-help"){
cout << "KeePassX" << APP_VERSION << endl;
cout << "Usage: keepass [Filename] [Options]" << endl;
cout << " -help This Help" << endl;
cout << " -cfg <CONFIG> Use specified file for loading/saving the configuration." << endl;
cout << " -lang <LOCALE> Use specified language instead of systems default." << endl;
cout << " <LOCALE> is the ISO-639 language code with or without ISO-3166 country code" << endl;
cout << " Examples: de German" << endl;
cout << " de_CH German(Switzerland)"<<endl;
cout << " pt_BR Portuguese(Brazil)"<<endl;
printHelp();
exit(0);
}
else if(QString(argv[i])=="-cfg"){
@ -439,21 +409,32 @@ int i=1;
else{ArgCfg=QString::fromUtf8(argv[i+1]); i++;}
}
else if(QString(argv[i])=="-lang"){
if(i-1==argc) cout << "Missing argument for -lang" << endl;
else{ArgLang=QString::fromUtf8(argv[i+1]); i++;}
}
else if(QString(argv[i])=="-test"){/*
if (testDatabase()) exit(0);
else exit(1);*/
}