From 6abbeaf987f52fdda2624a0ca96b2b53bfc2e932 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Wed, 26 Jan 2011 12:50:44 +0100 Subject: [PATCH] [#132 state:fixed] Added a debug mode preference as well as extra debug loggings. --- cocoa/me/en.lproj/Preferences.strings | Bin 3670 -> 7616 bytes cocoa/me/en.lproj/Preferences.xib | 94 ++++++++++++++-- cocoa/me/fr.lproj/Preferences.strings | 3 + cocoa/me/fr.lproj/Preferences.xib | 115 ++++++++++++++++---- cocoa/pe/en.lproj/Preferences.strings | Bin 2239 -> 4750 bytes cocoa/pe/en.lproj/Preferences.xib | 140 +++++++++++++++++++----- cocoa/pe/fr.lproj/Preferences.strings | 3 + cocoa/pe/fr.lproj/Preferences.xib | 151 ++++++++++++++++++++------ cocoa/se/en.lproj/Preferences.strings | Bin 2822 -> 5922 bytes cocoa/se/en.lproj/Preferences.xib | 94 +++++++++++++++- cocoa/se/fr.lproj/Preferences.strings | 3 + cocoa/se/fr.lproj/Preferences.xib | 107 +++++++++++++++--- core/app.py | 4 + core/app_cocoa.py | 4 +- core/directories.py | 7 +- core/scanner.py | 1 + qt/base/app.py | 3 +- qt/base/preferences.py | 3 + qt/base/preferences_dialog.py | 2 + qt/lang/fr.ts | 6 + qt/me/preferences_dialog.py | 2 + qt/pe/preferences_dialog.py | 2 + qt/se/preferences_dialog.py | 2 + 23 files changed, 619 insertions(+), 127 deletions(-) diff --git a/cocoa/me/en.lproj/Preferences.strings b/cocoa/me/en.lproj/Preferences.strings index 9424e4e9202162b6856c0500b3f192bc0cf7f257..7edcb1edc4c7ebeacae3b75335627420bcbe74d7 100644 GIT binary patch literal 7616 zcmcgxTTc@~6h6=ViVcYg5=BefRWv?8y@UtE2uge`ZMjIhU|RwIy!w4JyFlmC(~VQp zY%$^E52LvEU=KrUR9bE$7y5{tOIY2H%}nAk?{Y;`Vq7tQj#Nn8DD}OY$r?Hb zBHcH&mX-Ihk|!;XK`4na$ZQ7I(Ll4p4*WF5hgC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&w>=z5Ru0)hu8;8FMf`UO{(WE$0!C>^s<33wnF=iokyo8Uf_l@E5|IyeAcBs}Hugsd$MyV93RCr1r z(Tqe=t6Nx6(Qr)`$ho3eic~B;S$T9<=+J|2;1jN7kGB<3KSipao~%5&x%A}*oT`D{wtdk4}~FmG;-+-FjB8kiJ`26zhR>T{qgEG2H<45J%W&HIrY5RVYJCUg2Fq($H5S@!MH|n1NklsksU7?$MqVl3T{!4<8yXpJ zw=^0!+5rc<4Vs`{x?7K(LPVz!sZ-=arP)*@1Cc?=vc@T4Nc6%$;?(M-U{0Wt0bDaMH)Sq5k7Zm zJ|j|}=_2!B|3PVavC&9GY9#l89CRU4B;2`a2R)(z7p_X;YawV-X62ok?ql(Ro6kfPo-VAHO;#213anr{uf?G zFW`yY|Dc!AGcKy(C^`>)C9?W|(7f_~^eX%FtM|4(j(C1V@wg Te%Rq>Gdi5jC~f@5f)0KH*QGvF diff --git a/cocoa/me/en.lproj/Preferences.xib b/cocoa/me/en.lproj/Preferences.xib index 43ab9617..5193509a 100644 --- a/cocoa/me/en.lproj/Preferences.xib +++ b/cocoa/me/en.lproj/Preferences.xib @@ -12,7 +12,7 @@ YES - + YES @@ -34,6 +34,10 @@ NSApplication + + YES + DebugMode + YES @@ -691,7 +695,7 @@ 292 - {{14, 146}, {332, 13}} + {{14, 126}, {332, 13}} YES @@ -707,7 +711,7 @@ 292 - {{14, 189}, {332, 17}} + {{14, 169}, {332, 17}} YES @@ -723,7 +727,7 @@ 292 - {{14, 114}, {256, 26}} + {{14, 94}, {256, 26}} YES @@ -793,7 +797,7 @@ 266 - {{17, 167}, {326, 22}} + {{17, 147}, {326, 22}} YES @@ -841,6 +845,27 @@ 25 + + + 256 + {{15, 192}, {265, 18}} + + YES + + 67239424 + 0 + Debug mode (restart required) + + + 1211912703 + 2 + + + + 200 + 25 + + {{10, 33}, {360, 251}} @@ -1491,6 +1516,22 @@ 128 + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 132 + @@ -1594,10 +1635,11 @@ YES - - + + + @@ -2065,6 +2107,20 @@ + + 129 + + + YES + + + + + + 130 + + + @@ -2094,11 +2150,16 @@ 122.IBViewBoundsToFrameTransform 123.IBPluginDependency 125.IBPluginDependency + 125.IBViewBoundsToFrameTransform 125.ImportedFromIB2 126.IBPluginDependency + 129.IBPluginDependency + 129.IBViewBoundsToFrameTransform + 129.ImportedFromIB2 13.IBPluginDependency 13.IBViewBoundsToFrameTransform 13.ImportedFromIB2 + 130.IBPluginDependency 14.IBPluginDependency 14.IBViewBoundsToFrameTransform 14.ImportedFromIB2 @@ -2225,31 +2286,40 @@ com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBYAAAwzAAAA + P4AAAL+AAABBYAAAwzQAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBiAAAwx8AAA + P4AAAL+AAABBiAAAwyMAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAw2QAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBoAAAw18AAA + + + com.apple.InterfaceBuilder.CocoaPlugin P4AAAL+AAABBcAAAwggAAA com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABC0AAAwvIAAA + P4AAAL+AAABBYAAAwuQAAA com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBYAAAwuYAAA + P4AAAL+AAABBYAAAwwUAAA com.apple.InterfaceBuilder.CocoaPlugin @@ -2386,7 +2456,7 @@ - 128 + 132 diff --git a/cocoa/me/fr.lproj/Preferences.strings b/cocoa/me/fr.lproj/Preferences.strings index f0c04f4a..f5cce7e2 100644 --- a/cocoa/me/fr.lproj/Preferences.strings +++ b/cocoa/me/fr.lproj/Preferences.strings @@ -97,3 +97,6 @@ /* Class = "NSButtonCell"; title = "Ignore duplicates hardlinking to the same file"; ObjectID = "126"; */ "126.title" = "Ignorer doublons avec hardlink vers le même fichier"; + +/* Class = "NSButtonCell"; title = "Debug mode (restart required)"; ObjectID = "130"; */ +"130.title" = "Mode de déboguage (redémarrage requis)"; \ No newline at end of file diff --git a/cocoa/me/fr.lproj/Preferences.xib b/cocoa/me/fr.lproj/Preferences.xib index 8b1c02e6..c32e6875 100644 --- a/cocoa/me/fr.lproj/Preferences.xib +++ b/cocoa/me/fr.lproj/Preferences.xib @@ -335,7 +335,7 @@ 1211912703 2 - + NSImage NSSwitch @@ -362,7 +362,7 @@ 1211912703 2 - + @@ -465,7 +465,7 @@ 1211912703 2 - + @@ -487,7 +487,7 @@ 1211912703 2 - + @@ -509,7 +509,7 @@ 1211912703 2 - + @@ -547,7 +547,7 @@ 1211912703 2 - + @@ -569,7 +569,7 @@ 1211912703 2 - + @@ -591,7 +591,7 @@ 1211912703 2 - + @@ -613,7 +613,7 @@ 1211912703 2 - + @@ -635,7 +635,7 @@ 1211912703 2 - + @@ -657,7 +657,7 @@ 1211912703 2 - + @@ -694,7 +694,7 @@ 1211912703 2 - + @@ -705,7 +705,7 @@ 292 - {{14, 146}, {332, 13}} + {{14, 126}, {332, 13}} YES @@ -721,7 +721,7 @@ 292 - {{14, 189}, {332, 17}} + {{14, 169}, {332, 17}} YES @@ -737,7 +737,7 @@ 292 - {{14, 114}, {256, 26}} + {{14, 94}, {256, 26}} YES @@ -807,7 +807,7 @@ 266 - {{17, 167}, {326, 22}} + {{17, 147}, {326, 22}} YES @@ -848,7 +848,29 @@ 1211912703 2 - + + + + + 200 + 25 + + + + + 256 + {{15, 192}, {265, 18}} + + YES + + 67239424 + 0 + Mode de déboguage (redémarrage requis) + + + 1211912703 + 2 + @@ -1505,6 +1527,22 @@ 128 + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 132 + @@ -1608,10 +1646,11 @@ YES - - + + + @@ -2079,6 +2118,20 @@ + + 129 + + + YES + + + + + + 130 + + + @@ -2108,11 +2161,16 @@ 122.IBViewBoundsToFrameTransform 123.IBPluginDependency 125.IBPluginDependency + 125.IBViewBoundsToFrameTransform 125.ImportedFromIB2 126.IBPluginDependency + 129.IBPluginDependency + 129.IBViewBoundsToFrameTransform + 129.ImportedFromIB2 13.IBPluginDependency 13.IBViewBoundsToFrameTransform 13.ImportedFromIB2 + 130.IBPluginDependency 14.IBPluginDependency 14.IBViewBoundsToFrameTransform 14.ImportedFromIB2 @@ -2240,31 +2298,40 @@ com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBYAAAwzAAAA + P4AAAL+AAABBYAAAwzQAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBiAAAwx8AAA + P4AAAL+AAABBiAAAwyMAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAw2QAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBoAAAw18AAA + + + com.apple.InterfaceBuilder.CocoaPlugin P4AAAL+AAABBcAAAwggAAA com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABC0AAAwvIAAA + P4AAAL+AAABBYAAAwuQAAA com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABBYAAAwuYAAA + P4AAAL+AAABBYAAAwwUAAA com.apple.InterfaceBuilder.CocoaPlugin @@ -2402,7 +2469,7 @@ - 128 + 132 diff --git a/cocoa/pe/en.lproj/Preferences.strings b/cocoa/pe/en.lproj/Preferences.strings index edcae149cf60d2da8166650c59c698e7b88ff808..810ff6edebe7f17a6b977aac547448fd20fdcdb9 100644 GIT binary patch literal 4750 zcmcgvU2obz5Zq^eg%zn%8dYh66VjyWLqeL02ihu4+h@Q)XdFX~mP=7~5Zt z3*LwS?JNJ~D-q7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mYL0HD%&;U` z1D3VfPz@qOrJ-_t5lCX7qTKiRZW4OooH$7W)pt$Rt*{^3jY4h(Q-JH5I;BY?8de2L zXEx+;T;_3Me)^Me`n#rz3wvVopBz`)Nfm64!mXTJrg<8H$6l=C!AWzlSx(!N9rNB~ zOGaBSHqfyb;&>RO{(E>Y`=LcQv6^HDld3G8oxNi!w+f$NSApplication + + YES + DebugMode + YES 3 2 - {{92, 371}, {392, 231}} + {{92, 348}, {392, 254}} 1886912512 dupeGuru PE Preferences @@ -85,7 +89,7 @@ 12 - {{13, 40}, {366, 185}} + {{13, 40}, {366, 208}} YES @@ -99,7 +103,7 @@ 292 - {{117, 117}, {181, 21}} + {{117, 140}, {181, 21}} YES @@ -127,7 +131,7 @@ 292 - {{119, 100}, {80, 13}} + {{119, 123}, {80, 13}} YES @@ -163,7 +167,7 @@ 289 - {{216, 100}, {80, 13}} + {{216, 123}, {80, 13}} YES @@ -179,7 +183,7 @@ 292 - {{14, 122}, {100, 14}} + {{14, 145}, {100, 14}} YES @@ -199,7 +203,7 @@ 256 - {{15, 56}, {316, 18}} + {{15, 79}, {316, 18}} YES @@ -222,7 +226,7 @@ 256 - {{15, 76}, {316, 18}} + {{15, 99}, {316, 18}} YES @@ -243,7 +247,7 @@ 256 - {{15, 16}, {316, 18}} + {{15, 39}, {316, 18}} YES @@ -264,7 +268,7 @@ 256 - {{15, 36}, {316, 18}} + {{15, 59}, {316, 18}} YES @@ -285,7 +289,7 @@ 256 - {{301, 122}, {31, 14}} + {{301, 145}, {31, 14}} YES @@ -364,7 +368,7 @@ - {{10, 33}, {346, 139}} + {{10, 33}, {346, 162}} Basic @@ -381,7 +385,7 @@ 256 - {{15, 120}, {316, 18}} + {{15, 143}, {316, 18}} YES @@ -402,7 +406,7 @@ 256 - {{15, 100}, {316, 18}} + {{15, 123}, {316, 18}} YES @@ -420,10 +424,31 @@ 25 + + + 256 + {{15, 103}, {316, 18}} + + YES + + 67239424 + 0 + Debug mode (restart required) + + + 1211912703 + 2 + + + + 200 + 25 + + 292 - {{14, 34}, {318, 13}} + {{14, 37}, {318, 13}} YES @@ -439,7 +464,7 @@ 292 - {{14, 77}, {318, 17}} + {{14, 80}, {318, 17}} YES @@ -455,7 +480,7 @@ 292 - {{14, 2}, {216, 26}} + {{14, 5}, {216, 26}} YES @@ -531,7 +556,7 @@ 266 - {{17, 55}, {312, 22}} + {{17, 58}, {312, 22}} YES @@ -559,7 +584,7 @@ - {{10, 33}, {346, 139}} + {{10, 33}, {346, 162}} Advanced @@ -577,7 +602,7 @@ - {392, 231} + {392, 254} {{0, 0}, {1440, 878}} @@ -828,6 +853,30 @@ 73 + + + nextKeyView + + + + 77 + + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 78 + @@ -931,10 +980,11 @@ YES - - + + + @@ -1204,6 +1254,20 @@ + + 74 + + + YES + + + + + + 75 + + + @@ -1214,6 +1278,7 @@ 1.IBPluginDependency 1.ImportedFromIB2 10.IBPluginDependency + 10.IBViewBoundsToFrameTransform 10.ImportedFromIB2 11.IBPluginDependency 11.ImportedFromIB2 @@ -1278,10 +1343,15 @@ 66.IBViewBoundsToFrameTransform 67.IBPluginDependency 69.IBPluginDependency + 69.IBViewBoundsToFrameTransform 69.ImportedFromIB2 7.IBPluginDependency 7.ImportedFromIB2 70.IBPluginDependency + 74.IBPluginDependency + 74.IBViewBoundsToFrameTransform + 74.ImportedFromIB2 + 75.IBPluginDependency 8.IBPluginDependency 8.IBViewBoundsToFrameTransform 8.ImportedFromIB2 @@ -1295,6 +1365,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDZgAAwoIAAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -1311,9 +1384,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{88, 614}, {392, 231}} + {{88, 591}, {392, 254}} com.apple.InterfaceBuilder.CocoaPlugin - {{88, 614}, {392, 231}} + {{88, 591}, {392, 254}} {213, 107} @@ -1355,28 +1428,37 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCVAAAwoYAAA + P4AAAL+AAABBYAAAwrwAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCYAAAwkgAAA + P4AAAL+AAABBiAAAwpoAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAwwsAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCtgAAwdgAAA + P4AAAL+AAABBcAAAwu4AAA + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAweAAAA com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAAA/gAAAwagAAA + P4AAAL+AAABBYAAAwjwAAA @@ -1397,7 +1479,7 @@ - 73 + 78 diff --git a/cocoa/pe/fr.lproj/Preferences.strings b/cocoa/pe/fr.lproj/Preferences.strings index ccbf1233..69f6f88f 100644 --- a/cocoa/pe/fr.lproj/Preferences.strings +++ b/cocoa/pe/fr.lproj/Preferences.strings @@ -52,3 +52,6 @@ /* Class = "NSButtonCell"; title = "Ignore duplicates hardlinking to the same file"; ObjectID = "70"; */ "70.title" = "Ignorer doublons avec hardlink vers le même fichier"; + +/* Class = "NSButtonCell"; title = "Debug mode (restart required)"; ObjectID = "75"; */ +"75.title" = "Mode de déboguage (redémarrage requis)"; \ No newline at end of file diff --git a/cocoa/pe/fr.lproj/Preferences.xib b/cocoa/pe/fr.lproj/Preferences.xib index 66527f51..9d08bf8b 100644 --- a/cocoa/pe/fr.lproj/Preferences.xib +++ b/cocoa/pe/fr.lproj/Preferences.xib @@ -38,7 +38,7 @@ 3 2 - {{92, 371}, {392, 231}} + {{92, 348}, {392, 254}} 1886912512 Préférences de dupeGuru PE @@ -84,7 +84,7 @@ 12 - {{13, 40}, {366, 185}} + {{13, 40}, {366, 208}} YES @@ -98,7 +98,7 @@ 292 - {{117, 117}, {181, 21}} + {{117, 140}, {181, 21}} YES @@ -126,7 +126,7 @@ 292 - {{119, 100}, {80, 13}} + {{119, 123}, {80, 13}} YES @@ -162,7 +162,7 @@ 289 - {{216, 100}, {80, 13}} + {{216, 123}, {80, 13}} YES @@ -178,7 +178,7 @@ 292 - {{14, 122}, {100, 14}} + {{14, 145}, {100, 14}} YES @@ -198,7 +198,7 @@ 256 - {{15, 56}, {316, 18}} + {{15, 79}, {316, 18}} YES @@ -209,7 +209,7 @@ 1211912703 2 - + NSImage NSSwitch @@ -225,18 +225,18 @@ 256 - {{15, 76}, {316, 18}} + {{15, 99}, {316, 18}} YES 67239424 0 - Comparer les images de taille différente + Comparer les images de tailles différentes 1211912703 2 - + @@ -247,7 +247,7 @@ 256 - {{15, 16}, {316, 18}} + {{15, 39}, {316, 18}} YES @@ -258,7 +258,7 @@ 1211912703 2 - + @@ -269,7 +269,7 @@ 256 - {{15, 36}, {316, 18}} + {{15, 59}, {316, 18}} YES @@ -280,7 +280,7 @@ 1211912703 2 - + @@ -291,7 +291,7 @@ 256 - {{301, 122}, {31, 14}} + {{301, 145}, {31, 14}} YES @@ -370,7 +370,7 @@ - {{10, 33}, {346, 139}} + {{10, 33}, {346, 162}} Simple @@ -387,7 +387,7 @@ 256 - {{15, 120}, {316, 18}} + {{15, 143}, {316, 18}} YES @@ -398,7 +398,7 @@ 1211912703 2 - + @@ -409,7 +409,7 @@ 256 - {{15, 100}, {316, 18}} + {{15, 123}, {316, 18}} YES @@ -420,7 +420,29 @@ 1211912703 2 - + + + + + 200 + 25 + + + + + 256 + {{15, 103}, {316, 18}} + + YES + + 67239424 + 0 + Mode de déboguage (redémarrage requis) + + + 1211912703 + 2 + @@ -431,7 +453,7 @@ 292 - {{14, 34}, {318, 13}} + {{14, 37}, {318, 13}} YES @@ -447,7 +469,7 @@ 292 - {{14, 77}, {318, 17}} + {{14, 80}, {318, 17}} YES @@ -463,7 +485,7 @@ 292 - {{14, 2}, {216, 26}} + {{14, 5}, {216, 26}} YES @@ -539,7 +561,7 @@ 266 - {{17, 55}, {312, 22}} + {{17, 58}, {312, 22}} YES @@ -567,7 +589,7 @@ - {{10, 33}, {346, 139}} + {{10, 33}, {346, 162}} Avancé @@ -585,7 +607,7 @@ - {392, 231} + {392, 254} {{0, 0}, {1440, 878}} {213, 129} @@ -835,6 +857,30 @@ 73 + + + nextKeyView + + + + 77 + + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 78 + @@ -938,10 +984,11 @@ YES - - + + + @@ -1211,6 +1258,20 @@ + + 74 + + + YES + + + + + + 75 + + + @@ -1221,6 +1282,7 @@ 1.IBPluginDependency 1.ImportedFromIB2 10.IBPluginDependency + 10.IBViewBoundsToFrameTransform 10.ImportedFromIB2 11.IBPluginDependency 11.ImportedFromIB2 @@ -1286,10 +1348,15 @@ 66.IBViewBoundsToFrameTransform 67.IBPluginDependency 69.IBPluginDependency + 69.IBViewBoundsToFrameTransform 69.ImportedFromIB2 7.IBPluginDependency 7.ImportedFromIB2 70.IBPluginDependency + 74.IBPluginDependency + 74.IBViewBoundsToFrameTransform + 74.ImportedFromIB2 + 75.IBPluginDependency 8.IBPluginDependency 8.IBViewBoundsToFrameTransform 8.ImportedFromIB2 @@ -1303,6 +1370,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDZgAAwoIAAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -1319,9 +1389,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{88, 614}, {392, 231}} + {{88, 591}, {392, 254}} com.apple.InterfaceBuilder.CocoaPlugin - {{88, 614}, {392, 231}} + {{88, 591}, {392, 254}} {1.79769e+308, 1.79769e+308} @@ -1364,28 +1434,37 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCVAAAwoYAAA + P4AAAL+AAABBYAAAwrwAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCYAAAwkgAAA + P4AAAL+AAABBiAAAwpoAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAwwsAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCtgAAwdgAAA + P4AAAL+AAABBcAAAwu4AAA + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAweAAAA com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAAA/gAAAwagAAA + P4AAAL+AAABBYAAAwjwAAA @@ -1406,7 +1485,7 @@ - 73 + 78 diff --git a/cocoa/se/en.lproj/Preferences.strings b/cocoa/se/en.lproj/Preferences.strings index 9bfd187792ea725b751f8ad6beee7b50ed454322..8ca4e5c1cc47761fea681d410597349b8f6cb0d5 100644 GIT binary patch literal 5922 zcmcgw+iuf95S{0I#i|k#R0v2*8@q^yHdRrD3Wx%IPIIS;8{)JnKM$Ol$Xgs+@Hog;rb zz{7m}X|qqq)XHIM6<{hFUBht(`$ouzQ)tzfX)<4)G1|zW$iBm~V_gt~$|uhL>U-3!B^5I3MF_ z0L+`!nIOkql=$;yv$^U-cLp2_aMuX9Vt9)_WZ%KsvrHmYtE7QsnT!%Y!p-N?P*(2~ z$VM};v$65Y3}juug*P>>4kXA$Xi$Jqn?=L5DQ7cQy0+t?2h;9{z9X9ul>u5ljgqDE?1!Ec1p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zN_@dj!h-)-jDAO%V?k;HEY@~QXHXed21=I>h4cn=DEFOb#M>!(Yo~rt{SJ1&(yj-( z0%E`vlqu>SHWvr4^_^CM&D_QVRI&IaakJ|iN-R*h zx!^_^nR3{nf8l62K5e!(GsJFhPvq%u8##Mw>?J6F= ztZ6neWEBIO9JPBTYVLH=99PW`8s^^fxgZ+tUtts)?f;eKm~6VLAL)(7_+ua8U68 diff --git a/cocoa/se/en.lproj/Preferences.xib b/cocoa/se/en.lproj/Preferences.xib index b68be647..ffb394a9 100644 --- a/cocoa/se/en.lproj/Preferences.xib +++ b/cocoa/se/en.lproj/Preferences.xib @@ -34,6 +34,10 @@ NSApplication + + YES + DebugMode + YES @@ -641,10 +645,31 @@ 25 + + + 256 + {{15, 174}, {313, 18}} + + YES + + 67239424 + 0 + Debug mode (restart required) + + + 1211912703 + 2 + + + + 200 + 25 + + 292 - {{14, 171}, {315, 17}} + {{14, 151}, {315, 17}} YES @@ -660,7 +685,7 @@ 266 - {{17, 141}, {309, 22}} + {{17, 121}, {309, 22}} YES @@ -677,7 +702,7 @@ 292 - {{14, 120}, {315, 13}} + {{14, 100}, {315, 13}} YES @@ -693,7 +718,7 @@ 292 - {{14, 88}, {234, 26}} + {{14, 68}, {234, 26}} YES @@ -1102,6 +1127,22 @@ 144 + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 148 + @@ -1205,6 +1246,7 @@ YES + @@ -1601,6 +1643,20 @@ + + 145 + + + YES + + + + + + 146 + + + @@ -1618,13 +1674,20 @@ 128.ImportedFromIB2 129.IBPluginDependency 133.IBPluginDependency + 133.IBViewBoundsToFrameTransform 133.ImportedFromIB2 134.IBPluginDependency 138.IBPluginDependency + 138.IBViewBoundsToFrameTransform 139.IBPluginDependency 141.IBPluginDependency + 141.IBViewBoundsToFrameTransform 141.ImportedFromIB2 142.IBPluginDependency + 145.IBPluginDependency + 145.IBViewBoundsToFrameTransform + 145.ImportedFromIB2 + 146.IBPluginDependency 51.IBPluginDependency 51.ImportedFromIB2 52.IBEditorWindowLastContentRect @@ -1653,6 +1716,7 @@ 60.IBViewBoundsToFrameTransform 60.ImportedFromIB2 61.IBPluginDependency + 61.IBViewBoundsToFrameTransform 61.ImportedFromIB2 62.IBPluginDependency 62.ImportedFromIB2 @@ -1728,11 +1792,26 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAwyYAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBiAAAww0AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAw1IAAA + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBoAAAw00AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1769,10 +1848,13 @@ com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCygAAwtwAAA + P4AAAL+AAABBYAAAwrgAAA com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAwt4AAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -1854,7 +1936,7 @@ - 144 + 148 diff --git a/cocoa/se/fr.lproj/Preferences.strings b/cocoa/se/fr.lproj/Preferences.strings index 054d5bc0..15214e95 100644 --- a/cocoa/se/fr.lproj/Preferences.strings +++ b/cocoa/se/fr.lproj/Preferences.strings @@ -70,3 +70,6 @@ /* Class = "NSButtonCell"; title = "Ignore duplicates hardlinking to the same file"; ObjectID = "142"; */ "142.title" = "Ignorer doublons avec hardlink vers le même fichier"; + +/* Class = "NSButtonCell"; title = "Debug mode (restart required)"; ObjectID = "146"; */ +"146.title" = "Mode de déboguage (redémarrage requis)"; \ No newline at end of file diff --git a/cocoa/se/fr.lproj/Preferences.xib b/cocoa/se/fr.lproj/Preferences.xib index 38457029..79da7f23 100644 --- a/cocoa/se/fr.lproj/Preferences.xib +++ b/cocoa/se/fr.lproj/Preferences.xib @@ -290,7 +290,7 @@ 1211912703 2 - + NSImage NSSwitch @@ -317,7 +317,7 @@ 1211912703 2 - + @@ -339,7 +339,7 @@ 1211912703 2 - + @@ -361,7 +361,7 @@ 1211912703 2 - + @@ -383,7 +383,7 @@ 1211912703 2 - + @@ -405,7 +405,7 @@ 1211912703 2 - + @@ -621,7 +621,7 @@ 1211912703 2 - + @@ -643,7 +643,29 @@ 1211912703 2 - + + + + + 200 + 25 + + + + + 256 + {{15, 174}, {313, 18}} + + YES + + 67239424 + 0 + Mode de déboguage (redémarrage requis) + + + 1211912703 + 2 + @@ -654,7 +676,7 @@ 292 - {{14, 171}, {315, 17}} + {{14, 151}, {315, 17}} YES @@ -670,7 +692,7 @@ 266 - {{17, 141}, {309, 22}} + {{17, 121}, {309, 22}} YES @@ -687,7 +709,7 @@ 292 - {{14, 120}, {315, 13}} + {{14, 100}, {315, 13}} YES @@ -703,7 +725,7 @@ 292 - {{14, 88}, {234, 26}} + {{14, 68}, {234, 26}} YES @@ -1111,6 +1133,22 @@ 144 + + + value: values.DebugMode + + + + + + value: values.DebugMode + value + values.DebugMode + 2 + + + 148 + @@ -1214,6 +1252,7 @@ YES + @@ -1610,6 +1649,20 @@ + + 145 + + + YES + + + + + + 146 + + + @@ -1627,13 +1680,20 @@ 128.ImportedFromIB2 129.IBPluginDependency 133.IBPluginDependency + 133.IBViewBoundsToFrameTransform 133.ImportedFromIB2 134.IBPluginDependency 138.IBPluginDependency + 138.IBViewBoundsToFrameTransform 139.IBPluginDependency 141.IBPluginDependency + 141.IBViewBoundsToFrameTransform 141.ImportedFromIB2 142.IBPluginDependency + 145.IBPluginDependency + 145.IBViewBoundsToFrameTransform + 145.ImportedFromIB2 + 146.IBPluginDependency 51.IBPluginDependency 51.ImportedFromIB2 52.IBEditorWindowLastContentRect @@ -1663,6 +1723,7 @@ 60.IBViewBoundsToFrameTransform 60.ImportedFromIB2 61.IBPluginDependency + 61.IBViewBoundsToFrameTransform 61.ImportedFromIB2 62.IBPluginDependency 62.ImportedFromIB2 @@ -1738,11 +1799,26 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAwyYAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBiAAAww0AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBcAAAw1IAAA + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBoAAAw00AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1780,10 +1856,13 @@ com.apple.InterfaceBuilder.CocoaPlugin - P4AAAL+AAABCygAAwtwAAA + P4AAAL+AAABBYAAAwrgAAA com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAwt4AAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -1865,7 +1944,7 @@ - 144 + 148 diff --git a/core/app.py b/core/app.py index fe48180f..af88c9f7 100644 --- a/core/app.py +++ b/core/app.py @@ -30,12 +30,16 @@ JOB_COPY = 'job_copy' JOB_DELETE = 'job_delete' HAD_FIRST_LAUNCH_PREFERENCE = 'HadFirstLaunch' +DEBUG_MODE_PREFERENCE = 'DebugMode' class NoScannableFileError(Exception): pass class DupeGuru(RegistrableApplication, Broadcaster): def __init__(self, data_module, appdata): + if self.get_default(DEBUG_MODE_PREFERENCE, False): + logging.getLogger().setLevel(logging.DEBUG) + logging.debug("Debug mode enabled") RegistrableApplication.__init__(self, appid=1) Broadcaster.__init__(self) self.is_first_run = not self.get_default(HAD_FIRST_LAUNCH_PREFERENCE, False) diff --git a/core/app_cocoa.py b/core/app_cocoa.py index 9e2b5e53..7efd56a0 100644 --- a/core/app_cocoa.py +++ b/core/app_cocoa.py @@ -29,9 +29,7 @@ JOBID2TITLE = { class DupeGuru(app.DupeGuru): def __init__(self, data_module, appdata_subdir): - LOGGING_LEVEL = logging.DEBUG if self.get_default('debug') else logging.WARNING - logging.basicConfig(level=LOGGING_LEVEL, format='%(levelname)s %(message)s') - logging.debug('started in debug mode') + logging.basicConfig(level=logging.WARNING, format='%(levelname)s %(message)s') install_exception_hook() appsupport = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, True)[0] appdata = op.join(appsupport, appdata_subdir) diff --git a/core/directories.py b/core/directories.py index d1a67a76..7bdca852 100644 --- a/core/directories.py +++ b/core/directories.py @@ -7,6 +7,7 @@ # http://www.hardcoded.net/licenses/bsd_license from xml.etree import ElementTree as ET +import logging from hscommon import io from hscommon.path import Path @@ -24,7 +25,7 @@ class AlreadyThereError(Exception): class InvalidPathError(Exception): """The path being added is invalid""" -class Directories(object): +class Directories: #---Override def __init__(self, fileclasses=[fs.File]): self._dirs = [] @@ -63,7 +64,9 @@ class Directories(object): try: filepaths = set() if state != STATE_EXCLUDED: - for file in fs.get_files(from_path, fileclasses=self.fileclasses): + found_files = fs.get_files(from_path, fileclasses=self.fileclasses) + logging.debug("Collected {} files in folder {}".format(len(found_files), str(from_path))) + for file in found_files: file.is_ref = state == STATE_REFERENCE filepaths.add(file.path) yield file diff --git a/core/scanner.py b/core/scanner.py index 3d192a0c..9df5197e 100644 --- a/core/scanner.py +++ b/core/scanner.py @@ -66,6 +66,7 @@ class Scanner: ScanType.Tag: lambda f: [engine.getwords(str(getattr(f, attrname))) for attrname in SCANNABLE_TAGS if attrname in self.scanned_tags], }[self.scan_type] for f in j.iter_with_progress(files, tr("Read metadata of %d/%d files")): + logging.debug("Reading metadata of {}".format(str(f.path))) f.words = func(f) return engine.getmatches(files, j=j, **kw) diff --git a/qt/base/app.py b/qt/base/app.py index 30cda8e2..851f42ea 100644 --- a/qt/base/app.py +++ b/qt/base/app.py @@ -48,7 +48,8 @@ class DupeGuru(DupeGuruBase, QObject): if not op.exists(appdata): os.makedirs(appdata) # For basicConfig() to work, we have to be sure that no logging has taken place before this call. - logging.basicConfig(filename=op.join(appdata, 'debug.log'), level=logging.WARNING) + logging.basicConfig(filename=op.join(appdata, 'debug.log'), level=logging.WARNING, + format='%(asctime)s - %(levelname)s - %(message)s') self.prefs = self._create_preferences() self.prefs.load() DupeGuruBase.__init__(self, data_module, appdata) diff --git a/qt/base/preferences.py b/qt/base/preferences.py index 1b63df01..63c3436e 100644 --- a/qt/base/preferences.py +++ b/qt/base/preferences.py @@ -27,6 +27,7 @@ class Preferences(PreferencesBase): self.ignore_hardlink_matches = get('IgnoreHardlinkMatches', self.ignore_hardlink_matches) self.use_regexp = get('UseRegexp', self.use_regexp) self.remove_empty_folders = get('RemoveEmptyFolders', self.remove_empty_folders) + self.debug_mode = get('DebugMode', self.debug_mode) self.destination_type = get('DestinationType', self.destination_type) self.custom_command = get('CustomCommand', self.custom_command) self.language = get('Language', self.language) @@ -59,6 +60,7 @@ class Preferences(PreferencesBase): self.use_regexp = False self.ignore_hardlink_matches = False self.remove_empty_folders = False + self.debug_mode = False self.destination_type = 1 self.custom_command = '' self.language = '' @@ -89,6 +91,7 @@ class Preferences(PreferencesBase): set_('IgnoreHardlinkMatches', self.ignore_hardlink_matches) set_('UseRegexp', self.use_regexp) set_('RemoveEmptyFolders', self.remove_empty_folders) + set_('DebugMode', self.debug_mode) set_('DestinationType', self.destination_type) set_('CustomCommand', self.custom_command) set_('ColumnsWidth', self.columns_width) diff --git a/qt/base/preferences_dialog.py b/qt/base/preferences_dialog.py index 1d90a268..d220136f 100644 --- a/qt/base/preferences_dialog.py +++ b/qt/base/preferences_dialog.py @@ -131,6 +131,7 @@ class PreferencesDialogBase(QDialog): setchecked(self.useRegexpBox, prefs.use_regexp) setchecked(self.removeEmptyFoldersBox, prefs.remove_empty_folders) setchecked(self.ignoreHardlinkMatches, prefs.ignore_hardlink_matches) + setchecked(self.debugModeBox, prefs.debug_mode) self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type) self.customCommandEdit.setText(prefs.custom_command) langindex = {'fr': 1}.get(self.app.prefs.language, 0) @@ -145,6 +146,7 @@ class PreferencesDialogBase(QDialog): prefs.use_regexp = ischecked(self.useRegexpBox) prefs.remove_empty_folders = ischecked(self.removeEmptyFoldersBox) prefs.ignore_hardlink_matches = ischecked(self.ignoreHardlinkMatches) + prefs.debug_mode = ischecked(self.debugModeBox) prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex() prefs.custom_command = str(self.customCommandEdit.text()) langs = ['en', 'fr'] diff --git a/qt/lang/fr.ts b/qt/lang/fr.ts index f67dcdc3..f0d03b31 100644 --- a/qt/lang/fr.ts +++ b/qt/lang/fr.ts @@ -390,6 +390,8 @@ Delete and hardlink duplicates Hardlinking de doublons + + Scan Type: Type de scan: @@ -534,6 +536,10 @@ French Français + + Debug mode (restart required) + Mode de déboguage (redémarrage requis) + diff --git a/qt/me/preferences_dialog.py b/qt/me/preferences_dialog.py index 77edca4b..f613c1fe 100644 --- a/qt/me/preferences_dialog.py +++ b/qt/me/preferences_dialog.py @@ -88,6 +88,8 @@ class PreferencesDialog(PreferencesDialogBase): self.widgetsVLayout.addWidget(self.removeEmptyFoldersBox) self._setupAddCheckbox('ignoreHardlinkMatches', tr("Ignore duplicates hardlinking to the same file")) self.widgetsVLayout.addWidget(self.ignoreHardlinkMatches) + self._setupAddCheckbox('debugModeBox', tr(tr("Debug mode (restart required)"))) + self.widgetsVLayout.addWidget(self.debugModeBox) self._setupBottomPart() def _load(self, prefs, setchecked): diff --git a/qt/pe/preferences_dialog.py b/qt/pe/preferences_dialog.py index 113fb109..d7cb8b1f 100644 --- a/qt/pe/preferences_dialog.py +++ b/qt/pe/preferences_dialog.py @@ -28,6 +28,8 @@ class PreferencesDialog(PreferencesDialogBase): self.widgetsVLayout.addWidget(self.removeEmptyFoldersBox) self._setupAddCheckbox('ignoreHardlinkMatches', tr("Ignore duplicates hardlinking to the same file")) self.widgetsVLayout.addWidget(self.ignoreHardlinkMatches) + self._setupAddCheckbox('debugModeBox', tr(tr("Debug mode (restart required)"))) + self.widgetsVLayout.addWidget(self.debugModeBox) self._setupBottomPart() def _load(self, prefs, setchecked): diff --git a/qt/se/preferences_dialog.py b/qt/se/preferences_dialog.py index 6154b634..ea773d16 100644 --- a/qt/se/preferences_dialog.py +++ b/qt/se/preferences_dialog.py @@ -76,6 +76,8 @@ class PreferencesDialog(PreferencesDialogBase): self.verticalLayout_4.addLayout(self.horizontalLayout_2) self._setupAddCheckbox('ignoreHardlinkMatches', tr("Ignore duplicates hardlinking to the same file"), self.widget) self.verticalLayout_4.addWidget(self.ignoreHardlinkMatches) + self._setupAddCheckbox('debugModeBox', tr(tr("Debug mode (restart required)")), self.widget) + self.verticalLayout_4.addWidget(self.debugModeBox) self.widgetsVLayout.addWidget(self.widget) self._setupBottomPart()