mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-10-31 22:05:58 +00:00
Compare commits
1012 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
8f197ea7e1 | ||
3a97ba941a | |||
e3bcf9d686 | |||
a81069be61 | |||
08154815d0 | |||
a95a9db08b | |||
3d866cec9a | |||
253dfd897c | |||
6e87f53f91 | |||
95e04c4d82 | |||
e3a612a704 | |||
53d5ac06bf | |||
13dd00c798 | |||
|
9f22835f73 | ||
|
85a4557525 | ||
70d956b4f8 | |||
|
007404f46a | ||
4385b50825 | |||
4ef1d24351 | |||
03be82c0b0 | |||
|
332b814c00 | ||
|
f56bef67e1 | ||
|
8160fe4fcc | ||
9ad84ade29 | |||
18f32fda19 | |||
99ec4e0f27 | |||
|
fe0e4bef91 | ||
322d29a996 | |||
c5a71f61b8 | |||
10405ad063 | |||
a257dbf0d5 | |||
|
7a4506ece3 | ||
aade6593ac | |||
6d8b86b7eb | |||
e41c91623c | |||
46521c8af1 | |||
549eb7f153 | |||
8125e3ec97 | |||
8c5e18b980 | |||
d81759f77f | |||
c57042fdd2 | |||
057be0294a | |||
81daddd072 | |||
1e651a1603 | |||
78f4145910 | |||
46d1afb566 | |||
a5e31f15f0 | |||
0cf6c9a1a2 | |||
6db2fa2be6 | |||
2dd2a801cc | |||
83f5e80427 | |||
091cae0cc6 | |||
e30a135451 | |||
1db93fd142 | |||
48862b6414 | |||
|
c920412856 | ||
4448b999ab | |||
af1ae33598 | |||
265d10b261 | |||
|
f1153c85c0 | ||
|
1eee3fd7e4 | ||
|
1827827fdf | ||
|
db174d4e63 | ||
1f1dfa88dc | |||
916c5204cf | |||
71af825b37 | |||
97f490b8b7 | |||
d369bcddd7 | |||
360dceca7b | |||
92b27801c3 | |||
|
b9aabb8545 | ||
d5eeab4a17 | |||
7865e4aeac | |||
58863b1728 | |||
e382683f66 | |||
f7ed1c801c | |||
f587c7b5d8 | |||
40ff40bea8 | |||
7a44c72a0a | |||
66aff9f74e | |||
5451f55219 | |||
36280b01e6 | |||
18359c3ea6 | |||
0a4e61edf5 | |||
d73a85b82e | |||
81c593399e | |||
6a732a79a8 | |||
63dd4d4561 | |||
e0061d7bc1 | |||
c5818b1d1f | |||
a470a8de25 | |||
a37b5b0eeb | |||
efd500ecc1 | |||
43fcc52291 | |||
50f5db1543 | |||
a5b0ccdd02 | |||
143147cb8e | |||
ebb81d9f03 | |||
da9f8b2b9d | |||
5ed5eddde6 | |||
9f40e4e786 | |||
86bf9b39d0 | |||
c0be0aecbd | |||
c408873d20 | |||
bbcdfbf698 | |||
8cee1a9467 | |||
448d33dcb6 | |||
8d414cadac | |||
f902ee889a | |||
bc89e71935 | |||
17b83c8001 | |||
0f845ee67a | |||
d40e32a143 | |||
1bc206e62d | |||
106a0feaba | |||
984e0c4094 | |||
9321e811d7 | |||
a64fcbfb5c | |||
cff07a12d6 | |||
|
b9c7832c4a | ||
b9dfeac2f3 | |||
efc99eee96 | |||
|
ff7733bb73 | ||
4b2fbe87ea | |||
9e4b41feb5 | |||
cbfa8720f1 | |||
a02c5e5b9b | |||
35e6ffd6af | |||
e957f840da | |||
85e22089bd | |||
b7d68b4458 | |||
8f440603ee | |||
5d8e559ca3 | |||
2c11eecf97 | |||
02803f738b | |||
db27e6a645 | |||
c9c35cc60d | |||
880205dbc8 | |||
6456e64328 | |||
f6a0c0cc6d | |||
eb57d269fc | |||
34f41dc522 | |||
|
77460045c4 | ||
|
9753afba74 | ||
|
1ea108fc2b | ||
|
2f02a6010d | ||
b80489fd66 | |||
1d60e124ee | |||
e22d7d2fc9 | |||
0a0694e095 | |||
3da9d5d869 | |||
78fb052d77 | |||
9805cba10d | |||
4c3dfe2f1f | |||
b0baa5bfd6 | |||
22996ee914 | |||
|
31ec9c667f | ||
3045361243 | |||
809116c764 | |||
83f401595d | |||
814d145366 | |||
efb76c7686 | |||
47dbe805bb | |||
f11fccc889 | |||
2e13c4ccb5 | |||
da72ffd1fd | |||
2c9437bef4 | |||
f9085386a6 | |||
d576a7043c | |||
1ef5f56158 | |||
f9316de244 | |||
0189c29f47 | |||
b4fa1d68f0 | |||
16df882481 | |||
58c04ff9ad | |||
6b8f85e39a | |||
2fff1a3436 | |||
a685524dd5 | |||
74918e2c56 | |||
18895d983b | |||
fe720208ea | |||
091d9e9239 | |||
5a4958cff9 | |||
be10b462fc | |||
d62b13bcdb | |||
06eca11f0b | |||
2879f18e0d | |||
3ee21771f9 | |||
c0ba6fb57a | |||
bc942b8263 | |||
ffe6b7047c | |||
9446f37fad | |||
af19660c18 | |||
99ad297906 | |||
e11f996dfc | |||
|
e95306e58f | ||
|
891a875990 | ||
|
545a5a75fb | ||
|
7b764f183e | ||
fdc8a17d26 | |||
cb3bbbec6e | |||
c51a82a2ce | |||
0cd8f5e948 | |||
9c09607c08 | |||
3bd342770c | |||
14b456dcf9 | |||
|
3dccb686e2 | ||
0db66baace | |||
e3828ae2ca | |||
|
23c59787e5 | ||
2f8d603251 | |||
|
a51f263632 | ||
|
718ca5b313 | ||
|
277bc3fbb8 | ||
|
e07dfd5955 | ||
4641bd6ec9 | |||
|
a6f83ad3d7 | ||
|
ab8750eedb | ||
|
22033211d6 | ||
0b46ca2222 | |||
72e0f76242 | |||
|
65c1d463f8 | ||
e6c791ab0a | |||
|
78f5088101 | ||
|
095df5eb95 | ||
|
f1ae478433 | ||
|
c4dcfd3d4b | ||
0840104edf | |||
|
6b4b436251 | ||
|
d18b8c10ec | ||
4a40b346a4 | |||
035cdc23b1 | |||
fbdb333457 | |||
e36aab177c | |||
77116ba94b | |||
d7f79aefd2 | |||
4c939f379c | |||
d098fe2281 | |||
09cfbad38d | |||
|
528dedd813 | ||
b30d67b834 | |||
|
3e6e74e2a9 | ||
|
b919b3ddc8 | ||
|
be3862fa8f | ||
|
da09920553 | ||
|
2baba3bfa0 | ||
a659a70dbe | |||
c9e48a5e3b | |||
68711162d1 | |||
0b0fd36629 | |||
bf5d151799 | |||
e29a427caf | |||
95ccbad92b | |||
421a58a61c | |||
|
b5a3313f80 | ||
|
116ac18e13 | ||
|
32dcd90b50 | ||
|
c2fef8d624 | ||
fd0adc77b3 | |||
6a03e1e399 | |||
ae51842007 | |||
ab6acd9e88 | |||
6a2c1eb293 | |||
7b4c31d262 | |||
|
5553414205 | ||
|
b138dfad33 | ||
701e6d4bb2 | |||
b44d1652b6 | |||
|
990eaaa797 | ||
|
348ce95f83 | ||
|
3255bdf0a2 | ||
|
1058247b44 | ||
|
7414f82e28 | ||
|
8105bb709f | ||
ec628751af | |||
|
288023d03e | ||
|
7740dfca0e | ||
1e12ad8d4c | |||
|
c1d94d6771 | ||
7f691d3c31 | |||
|
a93bd3aeee | ||
|
39d353d073 | ||
|
b76e86686a | ||
|
b5f59d27c9 | ||
|
f0d3dec517 | ||
|
90c7c067b7 | ||
c8cfa954d5 | |||
|
e533a396fb | ||
|
4b4cc04e87 | ||
e822a67b38 | |||
c30c3400d4 | |||
d539517525 | |||
|
07eba09ec2 | ||
|
7f19647e4b | ||
bf7d720126 | |||
|
6bc619055e | ||
|
452d1604bd | ||
|
680cb581c1 | ||
1d05f8910d | |||
|
bd09b30468 | ||
8d9933d035 | |||
|
cf5ba038d7 | ||
|
59ce740369 | ||
|
92feba5f08 | ||
|
a265b71d36 | ||
8d26c921a0 | |||
|
32d66cd19b | ||
|
735ba2fd0e | ||
|
b16b6ecf4d | ||
|
2875448c71 | ||
|
51b76385c0 | ||
|
b9f8dd6ea0 | ||
|
6623b04403 | ||
|
424d34a7ed | ||
|
2a032d24bc | ||
|
b8af2a4eb5 | ||
|
a55e02b36d | ||
|
18c933b4bf | ||
|
ea11a566af | ||
|
584e9c92d9 | ||
|
4a1641e39d | ||
|
26d18945b1 | ||
|
3382bd5e5b | ||
|
9f223f3964 | ||
|
2eaf7e7893 | ||
|
a26de27c47 | ||
|
21e62b7374 | ||
9e6b117327 | |||
|
3333d26557 | ||
|
6e81042989 | ||
|
470307aa3c | ||
|
089f00adb8 | ||
|
76fbfc2822 | ||
|
866bf996cf | ||
|
0104d8922c | ||
|
fbd7c4fe5f | ||
|
de5e61293b | ||
|
a3e402a3af | ||
|
056fa819cc | ||
|
3be1ee87c6 | ||
|
628d772766 | ||
|
acdeb01206 | ||
ab402d4024 | |||
|
d2cdcc989b | ||
|
2620d0080c | ||
|
63a9f00552 | ||
|
87f9317805 | ||
|
a542168a0d | ||
|
86e1b55b02 | ||
|
1b3b40543b | ||
|
dd6ffe08d7 | ||
|
11254381a8 | ||
|
23642815f6 | ||
|
7e4f371841 | ||
|
9b8637ffc8 | ||
|
79613f9b1e | ||
|
fa54e93236 | ||
|
8fb82ae3d8 | ||
|
eab5003e61 | ||
|
da8c493c9f | ||
|
9795f14176 | ||
|
1937120ad7 | ||
|
1823575af4 | ||
|
7dc9f25b06 | ||
5502b48089 | |||
f02b66fd54 | |||
d2235f9bc9 | |||
|
5f5f9232c1 | ||
c36fd84512 | |||
|
63b2f95cfa | ||
|
d193e1fd12 | ||
|
f0adf35db4 | ||
|
49a1beb225 | ||
|
f19b5d6ea6 | ||
|
730fadf63f | ||
|
9ae0d7e5cf | ||
1167519730 | |||
|
cf64565012 | ||
|
298f659f6e | ||
|
3539263437 | ||
|
6213d50670 | ||
|
ac941037ff | ||
|
733b3b0ed4 | ||
|
9168d72f38 | ||
|
75621cc816 | ||
|
3c816b2f11 | ||
|
85d6e05cd4 | ||
|
66127d025e | ||
|
58c675d1fa | ||
|
95b8406c7b | ||
|
3eddeb6aeb | ||
|
56912a7108 | ||
|
7ab299874d | ||
|
a4265e7fff | ||
|
db228ec8a3 | ||
|
61fc4f07ae | ||
|
b0a256f0d4 | ||
|
4ee9479a5f | ||
|
e7b3252534 | ||
|
36ab84423a | ||
|
370b582c9b | ||
|
9f15139d5f | ||
|
011939f5ee | ||
|
977c20f7c4 | ||
|
aa79b31aae | ||
|
970bb5e19d | ||
|
a706d0ebe5 | ||
|
b7abcf2989 | ||
|
8103cb3664 | ||
|
c3797918d2 | ||
|
60ddb9b596 | ||
|
a29f3fb407 | ||
|
c6162914ed | ||
|
02bd822ca0 | ||
|
ea6197626b | ||
|
468a736bfb | ||
|
f42df12a29 | ||
|
9b48e1851d | ||
|
c973224fa4 | ||
092cf1471b | |||
|
5cbe342d5b | ||
4f252480d3 | |||
5cc439d846 | |||
|
c6f5031dd8 | ||
|
eb6946343b | ||
|
e41a6b878c | ||
ee2671a5f3 | |||
e05c72ad8c | |||
7658cdafbc | |||
ecf005fad0 | |||
de0542d2a8 | |||
|
bcb26507fe | ||
c35db7f698 | |||
d2193328a7 | |||
|
ed64428c80 | ||
|
e89156e55c | ||
4c9309ea9c | |||
1c00331bc2 | |||
427e32f406 | |||
|
b048fa5968 | ||
d5a6ca7488 | |||
|
d15dea7aa0 | ||
|
ccb1c75f22 | ||
|
dffbed8e22 | ||
|
50ce010212 | ||
|
0e8cd32a6e | ||
|
ea191a8924 | ||
6abcedddda | |||
debf309a9a | |||
|
4b1c925ab1 | ||
|
1c0990f610 | ||
|
89f2dc3b15 | ||
|
ffae58040d | ||
0cc1cb4cb8 | |||
|
dab762f05e | ||
c4a6958ef0 | |||
98c6f12b39 | |||
5d21454789 | |||
3e4fe5b765 | |||
|
bd0f53bcbe | ||
|
d820fcc7b1 | ||
de8a0a21b2 | |||
7ba8aa3514 | |||
359d6498f7 | |||
2ea02bd7b5 | |||
8506d482af | |||
411d0d6e4a | |||
95ff6b6b76 | |||
334f6fe989 | |||
|
080bb8935c | ||
ad2a07a289 | |||
|
c61a7f1aaf | ||
|
f536f32b19 | ||
|
8cdff7b48c | ||
|
718e99e880 | ||
|
3c2ef97ee2 | ||
|
2f439d0fc7 | ||
|
4f234f272f | ||
|
18acaae888 | ||
|
be7d558dfe | ||
|
0b12236537 | ||
|
ed2a0bcd4d | ||
11e57b0316 | |||
c661905350 | |||
d819719eca | |||
08722a30f2 | |||
a1cc0fe946 | |||
2a2c0061f1 | |||
15bfe059c7 | |||
a1cacbe72b | |||
0a5db4c5c1 | |||
1b879259a4 | |||
136342f7d0 | |||
9eb15509c1 | |||
dde2c9bf8f | |||
f7e20c8aa6 | |||
1a04f6ee86 | |||
bd3d47bf19 | |||
f953bc4af4 | |||
10ac536c3b | |||
ab9703b86e | |||
79b97311e9 | |||
48936b53a8 | |||
|
9bf1887109 | ||
30b6e5c68d | |||
20202d8dfa | |||
6c6271bc69 | |||
f349f6a9b9 | |||
|
afe1d4ed2e | ||
|
c37037ca4a | ||
445f51d595 | |||
6132d7c211 | |||
|
79adbfd4f2 | ||
|
45b907a529 | ||
|
d5fef949e9 | ||
|
899a42f6a9 | ||
|
93a3978747 | ||
|
5d15cd4c97 | ||
|
7936339909 | ||
|
2f31dc7aab | ||
|
a6b1e6e9ab | ||
8cd0ef4c2b | |||
|
50e26928f4 | ||
|
84011fb46d | ||
|
8861f6296e | ||
|
35ea499857 | ||
|
a82a19e074 | ||
|
e72cf917f1 | ||
|
245ed0ddec | ||
|
f51f94e03d | ||
|
6a28017c49 | ||
|
dc6933c90c | ||
|
e0281dd740 | ||
|
79e99db1d3 | ||
|
76cc2000ab | ||
|
e4b6e12d4c | ||
|
c58a4817ca | ||
|
f7adb5f11e | ||
|
c43044ea4c | ||
|
cc01e8eb09 | ||
|
1c20e5c770 | ||
|
edcff588e2 | ||
|
26aad6e948 | ||
|
c303a490ef | ||
|
6ed4499a97 | ||
|
aa7499aa12 | ||
|
63558d647a | ||
|
eb3f7d65de | ||
|
ac8a336c4a | ||
|
0206f2fd15 | ||
|
b41d3f7efc | ||
|
c43d37582e | ||
|
30a278719b | ||
|
87ef46ca15 | ||
|
9f3ec065ed | ||
|
e19056048c | ||
|
76e5817ff3 | ||
|
20dc2d63fd | ||
|
28d2aa8197 | ||
|
5be9d537a5 | ||
|
b97e89d4d8 | ||
|
0f4992de47 | ||
|
55ad9ef33a | ||
|
e69a1764a0 | ||
|
215307df93 | ||
|
3aa99c396b | ||
|
9f2c3e7732 | ||
|
d660cef245 | ||
|
bdd404ce0e | ||
|
df9f72d9bf | ||
|
53bbc5901c | ||
|
0959f4581e | ||
|
b1ef3dc8fe | ||
|
334f4dd2ae | ||
|
fbdd1d866e | ||
|
64e86c9ff9 | ||
|
80f659858c | ||
|
ef8f8f0e44 | ||
|
b7a7282c2a | ||
|
668821301c | ||
|
13fb06a693 | ||
|
61b219ff43 | ||
|
c4aeda0bd0 | ||
|
76f3332d36 | ||
|
b47b1e11af | ||
|
168d94910b | ||
|
ca3172044f | ||
|
f66849b09d | ||
|
8c1078aa71 | ||
|
b780816e3c | ||
|
fb8a384a6a | ||
|
2be4ae8f65 | ||
|
f8686ffb55 | ||
|
3093a42553 | ||
|
83d934fd4f | ||
|
f3c09c7a8d | ||
|
a65077f871 | ||
|
d4919054f9 | ||
|
773f6651e6 | ||
|
9a25670552 | ||
|
8c9ef3ea29 | ||
|
7256adb4d4 | ||
|
ad45a6e16e | ||
|
c865f84c16 | ||
|
7d749779f2 | ||
|
8b878b7b13 | ||
|
0056f696df | ||
|
abd2f3a9d6 | ||
|
5c57a2a8fc | ||
|
dc76f9744e | ||
|
130581db53 | ||
|
9ed4b7abf0 | ||
|
a0a90e8ef8 | ||
|
197acbf5b3 | ||
|
09d5243648 | ||
|
10169bee9c | ||
|
bb8a41f8c5 | ||
|
bb1f0f5be6 | ||
|
4b6f8b45e2 | ||
|
2ed1b82ecf | ||
|
de9122c3cb | ||
|
632650b483 | ||
|
c05f01853d | ||
|
15539eb3c5 | ||
|
b9874cc7ed | ||
|
13a2868dd2 | ||
|
abb1345c49 | ||
|
9c53b2218c | ||
|
4b3c1e2828 | ||
|
b64f9f5ec0 | ||
|
40d9a486e2 | ||
|
6930e092e0 | ||
|
6b41223a22 | ||
|
d15321a8e9 | ||
|
d6533cbfa2 | ||
|
43974f9ebd | ||
|
0068e7b85a | ||
|
23b29eb5c3 | ||
|
dba231cf21 | ||
|
f25b1f9f46 | ||
|
60dd73f634 | ||
|
3b6fe992c0 | ||
|
6d263215ad | ||
|
bba20f4218 | ||
|
bb9908abb4 | ||
|
e7076bc3bd | ||
|
fc16ea8c49 | ||
|
0c07046ec4 | ||
|
943a6570d8 | ||
|
854a253d9f | ||
|
4e477104a6 | ||
|
79800bc6ed | ||
|
6e7b95b2cf | ||
|
bf09c4ce8a | ||
|
b4a73771c2 | ||
|
2166a0996c | ||
|
24643a9b5d | ||
|
045051ce06 | ||
|
7c3728ca47 | ||
|
91be1c7336 | ||
|
162378bb0a | ||
|
4e3cad5702 | ||
|
321f8ab406 | ||
|
5b3d5f5d1c | ||
|
372a682610 | ||
|
44266273bf | ||
|
ac32305532 | ||
|
87c2fa2573 | ||
|
db63b63cfd | ||
|
6725b2bf0f | ||
|
990e73c383 | ||
|
9e9e73aa6b | ||
|
8434befe1f | ||
|
1114ac5613 | ||
|
f5f29d775c | ||
|
ebd7f1b4ce | ||
|
279b7ad10c | ||
|
878205fc49 | ||
|
b16df32150 | ||
|
04b06f7704 | ||
|
c6ea1c62d4 | ||
|
6ce0f66601 | ||
|
ac3a9e3ba8 | ||
|
903d2f9183 | ||
|
ca709a60cf | ||
|
a9b4ce5529 | ||
|
9b82ceca67 | ||
|
4c7c279dd2 | ||
|
79db31685e | ||
|
ba13b700b0 | ||
|
640561a534 | ||
|
e4f81cbf04 | ||
|
4be4825112 | ||
|
7d107d8efa | ||
|
10d1363334 | ||
|
b76820ebde | ||
|
72b3cfb364 | ||
|
8b83ed0e5c | ||
|
781f13ae1a | ||
|
8193bbae6e | ||
|
4cafeaff91 | ||
|
95c6a7d41f | ||
|
a29e007475 | ||
|
d924d7797a | ||
|
33c217ecc8 | ||
|
c9035046ae | ||
|
ad31016825 | ||
|
c809066a93 | ||
|
60ca27b5e1 | ||
|
1104e24408 | ||
|
f66db94ffd | ||
|
d98b5b22da | ||
|
937748e838 | ||
|
37ebf36cee | ||
|
1c84bdd198 | ||
|
4a2fa7cd2c | ||
|
7d4110f6d3 | ||
|
8497343d7f | ||
|
235a2c2904 | ||
|
25169cfc20 | ||
|
152f5f37ce | ||
|
3e42ad8469 | ||
|
7ba2e38cd6 | ||
|
c7c7a73384 | ||
|
46f8984bdc | ||
|
c7d306b7d5 | ||
|
47e636e949 | ||
|
0562729d8b | ||
|
4a36227a18 | ||
|
28b8b2e415 | ||
|
fd82464564 | ||
|
418acf6e5e | ||
|
d14d076989 | ||
|
cb8bb5a70e | ||
|
563c9aeff3 | ||
|
a0cc1f2e03 | ||
|
01403a3f92 | ||
|
7116674663 | ||
|
b6bc5de79c | ||
|
5a275db67d | ||
|
31395d8794 | ||
|
3734bd6f6c | ||
|
da06ef8cad | ||
|
0b00171655 | ||
|
c1cfa86ad1 | ||
|
c34c9562d3 | ||
|
0e542577b0 | ||
|
42be49da83 | ||
|
398ac9b7c6 | ||
|
508e9a5d94 | ||
|
cc5ea1dbc1 | ||
|
3b8d355b9e | ||
|
10dbfa9b38 | ||
|
e8c42740cf | ||
|
4b6c4f048d | ||
|
7594cccf8c | ||
|
1d9573cf6f | ||
|
76f45fb5a6 | ||
|
12cf9b800b | ||
|
ba7e6494c6 | ||
|
72d8160b28 | ||
|
6d53511cee | ||
|
64d3c211e6 | ||
|
fad112f554 | ||
|
a563327723 | ||
|
096e2bb78a | ||
|
5a8cb6f5e3 | ||
|
664d630b96 | ||
|
a4256d3d2b | ||
|
8e65f15e1a | ||
|
9ea9f60e92 | ||
|
8efefaf0bf | ||
|
33d9569427 | ||
|
2fdfacb34e | ||
|
97fcf1ffa8 | ||
|
350b2c64e0 | ||
|
dcc57a7afb | ||
|
8b510994ad | ||
|
4a4d1bbfcd | ||
|
78c3c8ec2d | ||
|
e99e2b18e0 | ||
|
ae1283f2e1 | ||
|
cc76f3ca87 | ||
|
be8efea081 | ||
|
7e8f9036d8 | ||
|
8a8ac027f5 | ||
|
1d9d09fdf7 | ||
|
5dc956870d | ||
|
d8f48cbd42 | ||
|
39d24817f6 | ||
|
2364e44707 | ||
|
3e2249bf89 | ||
|
38acb6f91c | ||
|
9bcb28d5e2 | ||
|
d0a3f081da | ||
|
d11ec557e7 | ||
|
b9124a497c | ||
|
502715cfd6 | ||
|
e1f532e2fd | ||
|
a71033d9d6 | ||
|
a15a62f55c | ||
|
2fe5cdcf02 | ||
|
21c64545e5 | ||
|
c93a88f8b0 | ||
|
86a81eab4e | ||
|
1c779cb3ec | ||
|
04949c853d | ||
|
ff782a09f5 | ||
|
e5ce6680ca | ||
|
8e15d89a2e | ||
|
d874f26f06 | ||
|
80a99ff29e | ||
|
b11b97dd7c | ||
|
386a5f2c64 | ||
|
c13a2f207c | ||
|
d36710ef38 | ||
|
bbc9b003c6 | ||
|
3edba28f0b | ||
|
9304f42f69 | ||
|
375963ebfd | ||
|
7891fb5396 | ||
|
bdd5f0a515 | ||
|
db0901b1de | ||
|
9225697053 | ||
|
097b949763 | ||
|
60701c2a5c | ||
|
3ef1281450 | ||
|
af4e74a130 | ||
|
422fb2670d | ||
|
94a469205a | ||
|
95623f9b47 | ||
|
a65c246a2e | ||
|
045d496a98 | ||
|
5ed98b3d92 | ||
|
5799e3548b | ||
|
b01ed1e9f3 | ||
|
49839b8b8e | ||
|
500468ed1c | ||
|
de6f50ab12 | ||
|
2c6339f7a2 | ||
|
96c3d63557 | ||
|
e86b23259c | ||
|
89955aa96a | ||
|
39a601e393 | ||
|
3b9e11d14f | ||
|
81a7c4d6a6 | ||
|
35a162faf4 | ||
|
70e505ad92 | ||
|
aa3cf9700d | ||
|
e4b949abf6 | ||
|
2e23303d7e | ||
|
2fcaacd285 | ||
|
6627f0dbea | ||
|
a64b42de65 | ||
|
6dddcb1a47 | ||
|
4a8ce9b6c4 | ||
|
d4e6632e7e | ||
|
0ced3e39c8 | ||
|
26d923e175 | ||
|
592eba9eaa | ||
|
11450ae56a | ||
|
008bd1414e | ||
|
62f6cc3705 | ||
|
e16041c703 | ||
|
1103b58ec5 | ||
|
dc8b1b3b02 | ||
|
36b214443a | ||
|
d11e20f6ba | ||
|
477f73ffa4 | ||
|
0b5cd61540 | ||
|
17b5703885 | ||
|
7cac0b5d6e | ||
|
a4003b6072 | ||
|
fb26d7d077 | ||
|
f2cbb513d3 | ||
|
8c36218150 | ||
|
7637e493a6 | ||
|
62be8da6f9 | ||
|
b1c2941616 | ||
|
8efd3033a3 | ||
|
d417dbd2e3 | ||
|
3a717a86d8 | ||
|
e1f7260774 | ||
|
bfc1ee90ec | ||
|
93a5fd01b5 | ||
|
b028670250 | ||
|
dff141e800 | ||
|
f49c7dee96 | ||
|
5da793b029 | ||
|
a56258f8b3 | ||
|
ab6e0945a7 | ||
|
8ac035c8a9 | ||
|
1c15b0114b | ||
|
e78b14f9a2 | ||
|
573d088088 | ||
|
75b08125c0 | ||
|
20320f539f | ||
|
24771af955 | ||
|
2bfe9960f1 | ||
|
215bcb0d76 | ||
|
2dbf8b80ae | ||
|
470cd92030 | ||
|
111edc3ce5 | ||
|
df30a31782 | ||
|
91f3a59523 | ||
|
3441e51c0e | ||
|
a99c40b5d8 | ||
|
5b4de58c38 | ||
|
cd83b16dbd | ||
|
b67db988ab | ||
|
7ebea44cb0 | ||
|
4de40af1b0 | ||
|
54988650d7 | ||
|
a47c208f45 | ||
|
c321427a8f | ||
|
26c77a18fd | ||
|
9f19451ac7 | ||
|
bcd9d7e7d0 | ||
|
b42b0be512 | ||
|
d90764a9ea | ||
|
c5c4e02bf4 | ||
|
fae3a6ac3a | ||
|
09b91aab66 | ||
|
b5a219cc00 | ||
|
9cb62e0544 | ||
|
653668dd96 | ||
|
5a5a74d0e1 | ||
|
5247ac8abd | ||
|
f992599beb | ||
|
51f8c51ef3 | ||
|
fcdc692b61 | ||
|
deb5260c6a | ||
|
81df280ea6 | ||
|
4f097a3a89 | ||
|
8cd1e13814 | ||
|
7e81e6c93f | ||
|
b19d6c9a27 | ||
|
977fb606eb | ||
|
9e7d27dcda | ||
|
caf04f0d3f | ||
|
a2553da578 | ||
|
3cd44705f8 | ||
|
0cf6987083 | ||
|
a67f7e2c9e | ||
|
5a3b6883fa | ||
|
b0f9a94375 | ||
|
ad5c4a954c | ||
|
292d993dce | ||
|
1fe42f673f | ||
|
244af5b652 | ||
|
abe9041a67 | ||
|
a2d73b216c | ||
|
f08b593acb | ||
|
cb35dc7897 | ||
|
903ecd9eae | ||
|
79e9251511 | ||
|
81daef6145 | ||
|
6a7af81685 | ||
|
b3db7c6842 | ||
|
85e5b4cfa7 | ||
|
79e6020982 | ||
|
b7e7e67c99 | ||
|
1017e3c730 | ||
|
b74e33f4b0 | ||
|
2d0facdb14 | ||
|
c34004ed94 | ||
|
4db5fae38b | ||
|
5d5670d4be | ||
|
e21a7e18b4 | ||
|
a29ed235f6 | ||
|
fd706e752f | ||
|
729db49183 | ||
|
a68e4310ee | ||
|
500314859d | ||
|
b6d457f908 | ||
|
6850c7e2f8 | ||
|
9e5630fe99 | ||
|
f1a21e62cd | ||
|
7cc2defa35 | ||
|
24a11ee4bd | ||
|
e2b23ca961 | ||
|
8fabb14b8b | ||
|
07de7d6f0e | ||
|
e0b844f617 | ||
|
a7bc76bf7c | ||
|
89fb531f3d | ||
|
f22baa8d5a | ||
|
7c2e601a30 | ||
|
16e4a5fddd | ||
|
4200f2a090 | ||
|
45c8291645 | ||
|
89f8214bce | ||
|
16e1ee93d0 | ||
|
222ae73590 | ||
|
21c0292154 | ||
|
a7eb90894a | ||
|
64baf2a10c | ||
|
392a802ef1 | ||
|
8efeab7b40 | ||
|
8a86ecee38 | ||
|
3e79b57409 | ||
|
362e020585 | ||
|
df5c8ddf22 | ||
|
70cc48d51f | ||
|
dccffd9516 | ||
|
04056c1597 | ||
|
69b2e37368 | ||
|
05478591a4 | ||
|
ead3b1e651 | ||
|
27f4c290c4 | ||
|
4f248ee981 | ||
|
d7397c0125 |
5
.ctags
Normal file
5
.ctags
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-R
|
||||||
|
--exclude=build
|
||||||
|
--exclude=env
|
||||||
|
--exclude=.tox
|
||||||
|
--python-kinds=-i
|
13
.github/FUNDING.yml
vendored
Normal file
13
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: arsenetar
|
||||||
|
patreon: # Replace with a single Patreon username
|
||||||
|
open_collective: # Replace with a single Open Collective username
|
||||||
|
ko_fi: # Replace with a single Ko-fi username
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
|
liberapay: # Replace with a single Liberapay username
|
||||||
|
issuehunt: # Replace with a single IssueHunt username
|
||||||
|
otechie: # Replace with a single Otechie username
|
||||||
|
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||||
|
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. Windows 10 / OSX 10.15 / Ubuntu 20.04 / Arch Linux]
|
||||||
|
- Version [e.g. 4.1.0]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here. You may include the debug log although it is normally best to attach it as a file.
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: feature
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
50
.github/workflows/codeql-analysis.yml
vendored
Normal file
50
.github/workflows/codeql-analysis.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [master]
|
||||||
|
schedule:
|
||||||
|
- cron: "24 20 * * 2"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: ["cpp", "python"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v1
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
- if: matrix.language == 'cpp'
|
||||||
|
name: Build Cpp
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install python3-pyqt5
|
||||||
|
make modules
|
||||||
|
- if: matrix.language == 'python'
|
||||||
|
name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
# Analysis
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v1
|
65
.github/workflows/default.yml
vendored
Normal file
65
.github/workflows/default.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Workflow lints, and checks format in parallel then runs tests on all platforms
|
||||||
|
|
||||||
|
name: Default CI/CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python 3.12
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
- uses: pre-commit/action@v3.0.1
|
||||||
|
test:
|
||||||
|
needs: [pre-commit]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
|
||||||
|
include:
|
||||||
|
- os: windows-latest
|
||||||
|
python-version: "3.12"
|
||||||
|
- os: macos-latest
|
||||||
|
python-version: "3.12"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install setuptools
|
||||||
|
pip install -r requirements.txt -r requirements-extra.txt
|
||||||
|
- name: Build python modules
|
||||||
|
run: |
|
||||||
|
python build.py --modules
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
pytest core hscommon
|
||||||
|
- name: Upload Artifacts
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: modules ${{ matrix.python-version }}
|
||||||
|
path: build/**/*.so
|
||||||
|
merge-artifacts:
|
||||||
|
needs: [test]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Merge Artifacts
|
||||||
|
uses: actions/upload-artifact/merge@v4
|
||||||
|
with:
|
||||||
|
name: modules
|
||||||
|
pattern: modules*
|
||||||
|
delete-merged: true
|
26
.github/workflows/tx-push.yml
vendored
Normal file
26
.github/workflows/tx-push.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Push translation source to Transifex
|
||||||
|
name: Transifex Sync
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- locale/*.pot
|
||||||
|
|
||||||
|
env:
|
||||||
|
TX_VERSION: "v1.6.10"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push-source:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Get Transifex Client
|
||||||
|
run: |
|
||||||
|
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- $TX_VERSION
|
||||||
|
- name: Update & Push Translation Sources
|
||||||
|
env:
|
||||||
|
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||||
|
run: |
|
||||||
|
./tx push -s --use-git-timestamps
|
111
.gitignore
vendored
Normal file
111
.gitignore
vendored
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
# Byte-compiled / optimized / DLL files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Distribution / packaging
|
||||||
|
.Python
|
||||||
|
build/
|
||||||
|
develop-eggs/
|
||||||
|
dist/
|
||||||
|
downloads/
|
||||||
|
eggs/
|
||||||
|
.eggs/
|
||||||
|
lib/
|
||||||
|
lib64/
|
||||||
|
parts/
|
||||||
|
sdist/
|
||||||
|
var/
|
||||||
|
wheels/
|
||||||
|
share/python-wheels/
|
||||||
|
*.egg-info/
|
||||||
|
.installed.cfg
|
||||||
|
*.egg
|
||||||
|
MANIFEST
|
||||||
|
|
||||||
|
# PyInstaller
|
||||||
|
# Usually these files are written by a python script from a template
|
||||||
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
|
*.manifest
|
||||||
|
*.spec
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
pip-delete-this-directory.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
htmlcov/
|
||||||
|
.tox/
|
||||||
|
.nox/
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.cache
|
||||||
|
nosetests.xml
|
||||||
|
coverage.xml
|
||||||
|
*.cover
|
||||||
|
*.py,cover
|
||||||
|
.hypothesis/
|
||||||
|
.pytest_cache/
|
||||||
|
cover/
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
#*.pot
|
||||||
|
|
||||||
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
||||||
|
__pypackages__/
|
||||||
|
|
||||||
|
# Environments
|
||||||
|
.env
|
||||||
|
.venv
|
||||||
|
env*/
|
||||||
|
venv/
|
||||||
|
ENV/
|
||||||
|
env.bak/
|
||||||
|
venv.bak/
|
||||||
|
|
||||||
|
# mypy
|
||||||
|
.mypy_cache/
|
||||||
|
.dmypy.json
|
||||||
|
dmypy.json
|
||||||
|
|
||||||
|
# Pyre type checker
|
||||||
|
.pyre/
|
||||||
|
|
||||||
|
# pytype static type analyzer
|
||||||
|
.pytype/
|
||||||
|
|
||||||
|
# Cython debug symbols
|
||||||
|
cython_debug/
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
!.vscode/*.code-snippets
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Built Visual Studio Code Extensions
|
||||||
|
*.vsix
|
||||||
|
|
||||||
|
# dupeGuru Specific
|
||||||
|
/qt/*_rc.py
|
||||||
|
/help/*/conf.py
|
||||||
|
/help/*/changelog.rst
|
||||||
|
cocoa/autogen
|
||||||
|
/cocoa/*/Info.plist
|
||||||
|
/cocoa/*/build
|
||||||
|
|
||||||
|
*.waf*
|
||||||
|
.lock-waf*
|
||||||
|
/tags
|
37
.hgignore
37
.hgignore
@ -1,37 +0,0 @@
|
|||||||
syntax: glob
|
|
||||||
|
|
||||||
.DS_Store
|
|
||||||
run.py
|
|
||||||
*.pyc
|
|
||||||
*.so
|
|
||||||
*.mo
|
|
||||||
*.pyd
|
|
||||||
.tm_*
|
|
||||||
*.xcodeproj/xcuserdata
|
|
||||||
*.xcodeproj/project.xcworkspace/xcuserdata
|
|
||||||
conf.json
|
|
||||||
build
|
|
||||||
dist
|
|
||||||
install
|
|
||||||
installer_tmp-cache
|
|
||||||
cocoa/autogen
|
|
||||||
cocoa/*/Info.plist
|
|
||||||
cocoa/*/build
|
|
||||||
cocoa/*/*.app
|
|
||||||
cocoa/*/dg_cocoa.plugin
|
|
||||||
cocoa/*/fr.lproj/*.xib
|
|
||||||
cocoa/*/de.lproj/*.xib
|
|
||||||
cocoa/*/zh_CN.lproj/*.xib
|
|
||||||
cocoa/*/cs.lproj/*.xib
|
|
||||||
cocoa/*/it.lproj/*.xib
|
|
||||||
cs.lproj
|
|
||||||
de.lproj
|
|
||||||
fr.lproj
|
|
||||||
it.lproj
|
|
||||||
hy.lproj
|
|
||||||
ru.lproj
|
|
||||||
uk.lproj
|
|
||||||
zh_CN.lproj
|
|
||||||
qt/base/*_rc.py
|
|
||||||
help/*/conf.py
|
|
||||||
help/*/changelog.rst
|
|
75
.hgtags
75
.hgtags
@ -1,75 +0,0 @@
|
|||||||
0ef0ca83b49ad009c896f55824189acc932bcf22 se2.8.2
|
|
||||||
0ef0ca83b49ad009c896f55824189acc932bcf22 me5.6.6
|
|
||||||
0ef0ca83b49ad009c896f55824189acc932bcf22 pe1.7.8
|
|
||||||
a8f232f880b6f9ada565d472996a627ebf69b6e9 before-tiger-drop
|
|
||||||
321d15e818cf9a3f1fc037543090bb2fca2cccd7 me5.7.0
|
|
||||||
adc73ccd14b1386cb04dee773c53a2d126800e31 se2.9.0
|
|
||||||
cbcf9c80fee4c908ef2efbf1c143c9e47676c9b2 pe1.8.0
|
|
||||||
61c4101851bdea3cb37dfb76f0d404c78c7c594c se2.9.1
|
|
||||||
0e923897a3389331d4ab3debbc40b8dd616199d9 pe1.8.1
|
|
||||||
2c454eca9ebe93b6cf34916068f828a6a39e3eaf me5.7.1
|
|
||||||
19e40bab20521d4256acf325dba9b32e95e135c5 pe1.8.2
|
|
||||||
7b7c5a66ebee4e4b8125330d24fe9ce1a070ff25 se2.9.2
|
|
||||||
1cef6d39855f85d4be728646bc78b860e6d4e398 pe1.8.3
|
|
||||||
90ed56ee602666db2f267f73eac6f824347039b5 me5.7.2
|
|
||||||
4c3cb1e671a333eabde1151c7c6ffb3609cab025 pe1.8.4
|
|
||||||
0a71306434bca51bea9a5d5ae54fe1bf0e4900d8 pe1.8.5
|
|
||||||
556baf4a410779e9bbf43129de133e4c4b26d679 pe1.8.6
|
|
||||||
9149024283959a50fe9a47a5f175b905d1672c19 se2.10.0
|
|
||||||
388a7e5aef6385e515189f4a15b4c4fed3ae2fcf me5.8.0
|
|
||||||
27501167e3b9262ecb60c967941294f36d77eb25 pe1.9.0
|
|
||||||
cb0a860430bacd712820bce426bcf47a4135efe1 se2.10.1
|
|
||||||
cb0a860430bacd712820bce426bcf47a4135efe1 se2.10.1
|
|
||||||
f71d405e62badcfdc1b037facaac043cece40ee5 se2.10.1
|
|
||||||
3742e83edd9eadf44e1a501859f5e2462b1ef6fd me5.8.1
|
|
||||||
724ff565dd785fb739774588c6ee652cfc0612d5 pe1.9.1
|
|
||||||
634b66415c6529f46ae4f837318027cc9d70c3b5 before-py3k
|
|
||||||
2b67955db2b0580a8b0854dc918b6ab0d1fa3b88 se2.11.0
|
|
||||||
b56fe4dd8c95bca270b078a09e86848df77e2b2d me5.9.0
|
|
||||||
618a7365457d56fdc6920c70843a244762e2ea00 pe1.10.0
|
|
||||||
95b3a4b564c6222b414f2b40182dde2bd6d0e8a4 me5.9.1
|
|
||||||
9735a5218d2b5b3b1e1dfe17f2f874177cf8f61c se2.11.1
|
|
||||||
dbfee3ee2fa5cbb9e7ab36570659c17cd5b8561f se2.12.0
|
|
||||||
d3fe0d0dcda1e0bf1100d02f117503d3bf6baacf me5.10.0
|
|
||||||
b07ac1398703dd358912c1f3d20bd995633db9fe pe1.11.0
|
|
||||||
96b6aee668398d663b04eafc8d5dae05e18500ee before-fairware
|
|
||||||
22239f94589baf2a9fad2123045b8a718dbd68f5 se2.12.2
|
|
||||||
f9cae82a0752191276b24ffb2cc4e4a8afb5d754 me5.10.2
|
|
||||||
154c8cb6f018d446d88fa099490c900906e86386 pe1.11.2
|
|
||||||
ca93352ce35184853ad9fcb881935a43a8b1e249 me5.10.3
|
|
||||||
44f6ff67066c083f79daa18a9d2f1ab909e0a62e me5.10.4
|
|
||||||
3f71a8f5bf8f6d0729748a27af9163e013723294 pe1.11.3
|
|
||||||
0056293b0dade8b8230f68c1fe6f0c2d1e0b74d8 se2.12.3
|
|
||||||
8d12cab3b12b723e3a86d02cf8002731a0f73f95 se3.0.0
|
|
||||||
778876a8a9787658aa6adf6944b53aebcb7faeea se3.0.1
|
|
||||||
f1d40b556c01f32c58f9ef9f9acac5b78e01ba7a pe2.0.0
|
|
||||||
2fd901a516f8cb6b4438491f63f2ebfd52a57c13 me6.0.0
|
|
||||||
ff43c6d9feb388f103b7857eaa6f7809185f78ec before-pluginbuilder
|
|
||||||
d274bcb98f2d02b86470a04cd62e718eff33b74f pe2.1.0
|
|
||||||
77e169f757195c11e9c1c5febeb2db8eb3589510 se3.0.2
|
|
||||||
97893f37d7d0767b5aedf1b4b40de57ee36d426b se3.1.0
|
|
||||||
e44d5127ed605daa7a17a01eee65d0a157de20c0 pe2.2.0
|
|
||||||
ecf9aaa568340e3d03e8854b7556edd5a3285107 pe2.2.1
|
|
||||||
db1f325c907ffa9808a49cb7bc2886b9fca7aee2 se3.1.1
|
|
||||||
e62183e907d6177cf0bac354e31afa9546c199e6 se3.1.2
|
|
||||||
28ba95706dc54ba32b1c0cf4e1e6350515d19ba3 me6.0.2
|
|
||||||
925847384dcef62a5c3518fc9e5ce42feab2b093 pe2.2.2
|
|
||||||
383b14d6e8555ed2c8d5552259bc7ce600dfb1d0 before-leopard-drop
|
|
||||||
a2f7b7302e178f08725a6404ddc28464409510b1 se3.2.0
|
|
||||||
5a5134a4fa9bb7ca80ae3e32010030f5bd7ba434 me6.1.0
|
|
||||||
0fd77be57ff716d5c93232e829dc02acec036d7c se3.2.1
|
|
||||||
3dd08060135b0b9cef70b6f5a81f191ea339c8d5 me6.1.1
|
|
||||||
4e6cbef6bcdfcc0e56ff9690fbfe1cac1f4b1b09 pe2.3.0
|
|
||||||
9ea9af1b886cd1adc4f42fd2276cc2b38376eab0 se3.3.0
|
|
||||||
6e3379be6821bb36d7f0877a17dd6c07aa037b0a se3.3.1
|
|
||||||
015ba7e2c10d09afb944f387c2a9c97f7eff7571 me6.2.0
|
|
||||||
8178bda48324461a17118c98634241952c074f29 pe2.4.0
|
|
||||||
2a96f2fb3ddb6f1e0ae87951586733fc3e4a28a0 se3.3.2
|
|
||||||
6a08c1205dfe5e537e5c2dc99d05e05d1d3928f6 me6.2.1
|
|
||||||
a619f313712e2923160b8f90d8250ee0e184c7b9 pe2.4.1
|
|
||||||
fad463ae749b7189dce92f1e42a57ac4ee03987d se3.3.3
|
|
||||||
236cf9b690a144392e7e86e7c9749fc834a8b271 me6.3.0
|
|
||||||
90318f1303858d9d01065d92d78d98b888b38ea0 se3.4.0
|
|
||||||
93ed33410df2d2f21229a77ae49c83ece2c50a55 pe2.5.0
|
|
||||||
c153aef25e5c9911f2197d13899591c50cf38ffc se3.4.1
|
|
||||||
71b7e18613f3790cea18cb0dd8c9c986ce237267 me6.3.1
|
|
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-toml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
exclude: ".*.json"
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 24.2.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
- repo: https://github.com/PyCQA/flake8
|
||||||
|
rev: 7.0.0
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
exclude: ^(.tox|env|build|dist|help|qt/dg_rc.py|pkg).*
|
||||||
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
|
rev: v9.11.0
|
||||||
|
hooks:
|
||||||
|
- id: commitlint
|
||||||
|
stages: [commit-msg]
|
||||||
|
additional_dependencies: ["@commitlint/config-conventional"]
|
1
.sonarcloud.properties
Normal file
1
.sonarcloud.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
sonar.python.version=3.7, 3.8, 3.9, 3.10, 3.11
|
20
.tx/config
Normal file
20
.tx/config
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[main]
|
||||||
|
host = https://www.transifex.com
|
||||||
|
|
||||||
|
[o:voltaicideas:p:dupeguru-1:r:columns]
|
||||||
|
file_filter = locale/<lang>/LC_MESSAGES/columns.po
|
||||||
|
source_file = locale/columns.pot
|
||||||
|
source_lang = en
|
||||||
|
type = PO
|
||||||
|
|
||||||
|
[o:voltaicideas:p:dupeguru-1:r:core]
|
||||||
|
file_filter = locale/<lang>/LC_MESSAGES/core.po
|
||||||
|
source_file = locale/core.pot
|
||||||
|
source_lang = en
|
||||||
|
type = PO
|
||||||
|
|
||||||
|
[o:voltaicideas:p:dupeguru-1:r:ui]
|
||||||
|
file_filter = locale/<lang>/LC_MESSAGES/ui.po
|
||||||
|
source_file = locale/ui.pot
|
||||||
|
source_lang = en
|
||||||
|
type = PO
|
12
.vscode/extensions.json
vendored
Normal file
12
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
// List of extensions which should be recommended for users of this workspace.
|
||||||
|
"recommendations": [
|
||||||
|
"redhat.vscode-yaml",
|
||||||
|
"ms-python.vscode-pylance",
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.black-formatter",
|
||||||
|
],
|
||||||
|
// List of extensions recommended by VS Code that should not be recommended for
|
||||||
|
// users of this workspace.
|
||||||
|
"unwantedRecommendations": []
|
||||||
|
}
|
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "DupuGuru",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "run.py",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"subProcess": true,
|
||||||
|
"justMyCode": false
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
17
.vscode/settings.json
vendored
Normal file
17
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"cSpell.words": [
|
||||||
|
"Dupras",
|
||||||
|
"hscommon"
|
||||||
|
],
|
||||||
|
"editor.rulers": [
|
||||||
|
88,
|
||||||
|
120
|
||||||
|
],
|
||||||
|
"python.languageServer": "Pylance",
|
||||||
|
"yaml.schemaStore.enable": true,
|
||||||
|
"[python]": {
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||||
|
},
|
||||||
|
"python.testing.pytestEnabled": true
|
||||||
|
}
|
88
CONTRIBUTING.md
Normal file
88
CONTRIBUTING.md
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# Contributing to dupeGuru
|
||||||
|
|
||||||
|
The following is a set of guidelines and information for contributing to dupeGuru.
|
||||||
|
|
||||||
|
#### Table of Contents
|
||||||
|
|
||||||
|
[Things to Know Before Starting](#things-to-know-before-starting)
|
||||||
|
|
||||||
|
[Ways to Contribute](#ways-to-contribute)
|
||||||
|
* [Reporting Bugs](#reporting-bugs)
|
||||||
|
* [Suggesting Enhancements](#suggesting-enhancements)
|
||||||
|
* [Localization](#localization)
|
||||||
|
* [Code Contribution](#code-contribution)
|
||||||
|
* [Pull Requests](#pull-requests)
|
||||||
|
|
||||||
|
[Style Guides](#style-guides)
|
||||||
|
* [Git Commit Messages](#git-commit-messages)
|
||||||
|
* [Python Style Guide](#python-style-guide)
|
||||||
|
* [Documentation Style Guide](#documentation-style-guide)
|
||||||
|
|
||||||
|
[Additional Notes](#additional-notes)
|
||||||
|
* [Issue and Pull Request Labels](#issue-and-pull-request-labels)
|
||||||
|
|
||||||
|
## Things to Know Before Starting
|
||||||
|
**TODO**
|
||||||
|
## Ways to contribute
|
||||||
|
### Reporting Bugs
|
||||||
|
**TODO**
|
||||||
|
### Suggesting Enhancements
|
||||||
|
**TODO**
|
||||||
|
### Localization
|
||||||
|
**TODO**
|
||||||
|
### Code Contribution
|
||||||
|
**TODO**
|
||||||
|
### Pull Requests
|
||||||
|
Please follow these steps to have your contribution considered by the maintainers:
|
||||||
|
|
||||||
|
1. Keep Pull Request specific to one feature or bug.
|
||||||
|
2. Follow the [style guides](#style-guides)
|
||||||
|
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
|
||||||
|
|
||||||
|
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
||||||
|
|
||||||
|
## Style Guides
|
||||||
|
### Git Commit Messages
|
||||||
|
- Use the present tense ("Add feature" not "Added feature")
|
||||||
|
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
||||||
|
- Limit the first line to 72 characters or less
|
||||||
|
- Reference issues and pull requests liberally after the first line
|
||||||
|
|
||||||
|
### Python Style Guide
|
||||||
|
- All files are formatted with [Black](https://github.com/psf/black)
|
||||||
|
- Follow [PEP 8](https://peps.python.org/pep-0008/) as much as practical
|
||||||
|
- Pass [flake8](https://flake8.pycqa.org/en/latest/) linting
|
||||||
|
- Include [PEP 484](https://peps.python.org/pep-0484/) type hints (new code)
|
||||||
|
|
||||||
|
### Documentation Style Guide
|
||||||
|
**TODO**
|
||||||
|
|
||||||
|
## Additional Notes
|
||||||
|
### Issue and Pull Request Labels
|
||||||
|
This section lists and describes the various labels used with issues and pull requests. Each of the labels is listed with a search link as well.
|
||||||
|
|
||||||
|
#### Issue Type and Status
|
||||||
|
| Label name | Search | Description |
|
||||||
|
|------------|--------|-------------|
|
||||||
|
| `enhancement` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) | Feature requests and enhancements. |
|
||||||
|
| `bug` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Abug) | Bug reports. |
|
||||||
|
| `duplicate` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aduplicate) | Issue is a duplicate of existing issue. |
|
||||||
|
| `needs-reproduction` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aneeds-reproduction) | A bug that has not been able to be reproduced. |
|
||||||
|
| `needs-information` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aneeds-information) | More information needs to be collected about these problems or feature requests (e.g. steps to reproduce). |
|
||||||
|
| `blocked` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Ablocked) | Issue blocked by other issues. |
|
||||||
|
| `beginner` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Abeginner) | Less complex issues for users who want to start contributing. |
|
||||||
|
|
||||||
|
#### Category Labels
|
||||||
|
| Label name | Search | Description |
|
||||||
|
|------------|--------|-------------|
|
||||||
|
| `3rd party` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3A%223rd%20party%22) | Related to a 3rd party dependency. |
|
||||||
|
| `crash` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Acrash) | Related to crashes (complete, or unhandled). |
|
||||||
|
| `documentation` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Adocumentation) | Related to any documentation. |
|
||||||
|
| `linux` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3linux) | Related to running on Linux. |
|
||||||
|
| `mac` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Amac) | Related to running on macOS. |
|
||||||
|
| `performance` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aperformance) | Related to the performance. |
|
||||||
|
| `ui` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Aui)| Related to the visual design. |
|
||||||
|
| `windows` | [search](https://github.com/arsenetar/dupeguru/issues?q=is%3Aopen+is%3Aissue+label%3Awindows) | Related to running on Windows. |
|
||||||
|
|
||||||
|
#### Pull Request Labels
|
||||||
|
None at this time, if the volume of Pull Requests increase labels may be added to manage.
|
21
CREDITS
Normal file
21
CREDITS
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
To know who contributed to dupeGuru, you can look at the commit log, but not all contributions
|
||||||
|
result in a commit. This file lists contributors who don't necessarily appear in the commit log.
|
||||||
|
|
||||||
|
* Jason Cho, Exchange icon
|
||||||
|
* schollidesign (https://findicons.com/pack/1035/human_o2), Zoom-in, Zoom-out, Zoom-best-fit, Zoom-original icons
|
||||||
|
* Jérôme Cantin, Main icon
|
||||||
|
* Gregor Tätzner, German localization
|
||||||
|
* Frank Weber, German localization
|
||||||
|
* Eric Dee, Chinese localization
|
||||||
|
* Aleš Nehyba, Czech localization
|
||||||
|
* Paolo Rossi, Italian localization
|
||||||
|
* Hrant Ohanyan, Armenian localization
|
||||||
|
* Igor Pavlov, Russian localization
|
||||||
|
* Kyrill Detinov, Russian localization
|
||||||
|
* Yuri Petrashko, Ukrainian localization
|
||||||
|
* Nickolas Pohilets, Ukrainian localization
|
||||||
|
* Victor Figueiredo, Brazilian localization
|
||||||
|
* Phan Anh, Vietnamese localization
|
||||||
|
* Gabriel Koutilellis, Greek localization
|
||||||
|
|
||||||
|
Thanks!
|
625
LICENSE
625
LICENSE
@ -1,10 +1,621 @@
|
|||||||
Copyright 2012 Hardcoded Software Inc. (http://www.hardcoded.net)
|
GNU GENERAL PUBLIC LICENSE
|
||||||
All rights reserved.
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
Preamble
|
||||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
||||||
* Neither the name of Hardcoded Software Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
5
MANIFEST.in
Normal file
5
MANIFEST.in
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
recursive-include core *.h
|
||||||
|
recursive-include core *.m
|
||||||
|
include run.py
|
||||||
|
graft locale
|
||||||
|
graft help
|
123
Makefile
Normal file
123
Makefile
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
PYTHON ?= python3
|
||||||
|
PYTHON_VERSION_MINOR := $(shell ${PYTHON} -c "import sys; print(sys.version_info.minor)")
|
||||||
|
PYRCC5 ?= pyrcc5
|
||||||
|
REQ_MINOR_VERSION = 7
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
|
# Window compatability via Msys2
|
||||||
|
# - venv creates Scripts instead of bin
|
||||||
|
# - compile generates .pyd instead of .so
|
||||||
|
# - venv with --sytem-site-packages has issues on windows as well...
|
||||||
|
|
||||||
|
ifeq ($(shell ${PYTHON} -c "import platform; print(platform.system())"), Windows)
|
||||||
|
BIN = Scripts
|
||||||
|
SO = *.pyd
|
||||||
|
VENV_OPTIONS =
|
||||||
|
else
|
||||||
|
BIN = bin
|
||||||
|
SO = *.so
|
||||||
|
VENV_OPTIONS = --system-site-packages
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Set this variable if all dependencies are already met on the system. We will then avoid the
|
||||||
|
# whole vitualenv creation and pip install dance.
|
||||||
|
NO_VENV ?=
|
||||||
|
|
||||||
|
ifdef NO_VENV
|
||||||
|
VENV_PYTHON = $(PYTHON)
|
||||||
|
else
|
||||||
|
VENV_PYTHON = ./env/$(BIN)/python
|
||||||
|
endif
|
||||||
|
|
||||||
|
# If you're installing into a path that is not going to be the final path prefix (such as a
|
||||||
|
# sandbox), set DESTDIR to that path.
|
||||||
|
|
||||||
|
# Our build scripts are not very "make like" yet and perform their task in a bundle. For now, we
|
||||||
|
# use one of each file to act as a representative, a target, of these groups.
|
||||||
|
|
||||||
|
packages = hscommon core qt
|
||||||
|
localedirs = $(wildcard locale/*/LC_MESSAGES)
|
||||||
|
pofiles = $(wildcard locale/*/LC_MESSAGES/*.po)
|
||||||
|
mofiles = $(patsubst %.po,%.mo,$(pofiles))
|
||||||
|
|
||||||
|
vpath %.po $(localedirs)
|
||||||
|
vpath %.mo $(localedirs)
|
||||||
|
|
||||||
|
all: | env i18n modules qt/dg_rc.py
|
||||||
|
@echo "Build complete! You can run dupeGuru with 'make run'"
|
||||||
|
|
||||||
|
run:
|
||||||
|
$(VENV_PYTHON) run.py
|
||||||
|
|
||||||
|
pyc: | env
|
||||||
|
${VENV_PYTHON} -m compileall ${packages}
|
||||||
|
|
||||||
|
reqs:
|
||||||
|
ifneq ($(shell test $(PYTHON_VERSION_MINOR) -ge $(REQ_MINOR_VERSION); echo $$?),0)
|
||||||
|
$(error "Python 3.${REQ_MINOR_VERSION}+ required. Aborting.")
|
||||||
|
endif
|
||||||
|
ifndef NO_VENV
|
||||||
|
@${PYTHON} -m venv -h > /dev/null || \
|
||||||
|
echo "Creation of our virtualenv failed. If you're on Ubuntu, you probably need python3-venv."
|
||||||
|
endif
|
||||||
|
@${PYTHON} -c 'import PyQt5' >/dev/null 2>&1 || \
|
||||||
|
{ echo "PyQt 5.4+ required. Install it and try again. Aborting"; exit 1; }
|
||||||
|
|
||||||
|
env: | reqs
|
||||||
|
ifndef NO_VENV
|
||||||
|
@echo "Creating our virtualenv"
|
||||||
|
${PYTHON} -m venv env
|
||||||
|
$(VENV_PYTHON) -m pip install -r requirements.txt
|
||||||
|
# We can't use the "--system-site-packages" flag on creation because otherwise we end up with
|
||||||
|
# the system's pip and that messes up things in some cases (notably in Gentoo).
|
||||||
|
${PYTHON} -m venv --upgrade ${VENV_OPTIONS} env
|
||||||
|
endif
|
||||||
|
|
||||||
|
build/help: | env
|
||||||
|
$(VENV_PYTHON) build.py --doc
|
||||||
|
|
||||||
|
qt/dg_rc.py: qt/dg.qrc
|
||||||
|
$(PYRCC5) qt/dg.qrc > qt/dg_rc.py
|
||||||
|
|
||||||
|
i18n: $(mofiles)
|
||||||
|
|
||||||
|
%.mo: %.po
|
||||||
|
msgfmt -o $@ $<
|
||||||
|
|
||||||
|
modules: | env
|
||||||
|
$(VENV_PYTHON) build.py --modules
|
||||||
|
|
||||||
|
mergepot: | env
|
||||||
|
$(VENV_PYTHON) build.py --mergepot
|
||||||
|
|
||||||
|
normpo: | env
|
||||||
|
$(VENV_PYTHON) build.py --normpo
|
||||||
|
|
||||||
|
install: all pyc
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/share/dupeguru
|
||||||
|
cp -rf ${packages} locale ${DESTDIR}${PREFIX}/share/dupeguru
|
||||||
|
cp -f run.py ${DESTDIR}${PREFIX}/share/dupeguru/run.py
|
||||||
|
chmod 755 ${DESTDIR}${PREFIX}/share/dupeguru/run.py
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
|
ln -sf ${PREFIX}/share/dupeguru/run.py ${DESTDIR}${PREFIX}/bin/dupeguru
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/share/applications
|
||||||
|
cp -f pkg/dupeguru.desktop ${DESTDIR}${PREFIX}/share/applications
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/share/pixmaps
|
||||||
|
cp -f images/dgse_logo_128.png ${DESTDIR}${PREFIX}/share/pixmaps/dupeguru.png
|
||||||
|
|
||||||
|
installdocs: build/help
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/share/dupeguru
|
||||||
|
cp -rf build/help ${DESTDIR}${PREFIX}/share/dupeguru
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -rf "${DESTDIR}${PREFIX}/share/dupeguru"
|
||||||
|
rm -f "${DESTDIR}${PREFIX}/bin/dupeguru"
|
||||||
|
rm -f "${DESTDIR}${PREFIX}/share/applications/dupeguru.desktop"
|
||||||
|
rm -f "${DESTDIR}${PREFIX}/share/pixmaps/dupeguru.png"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -rf build
|
||||||
|
-rm locale/*/LC_MESSAGES/*.mo
|
||||||
|
-rm core/pe/*.$(SO) qt/pe/*.$(SO)
|
||||||
|
|
||||||
|
.PHONY: clean normpo mergepot modules i18n reqs run pyc install uninstall all
|
109
README
109
README
@ -1,109 +0,0 @@
|
|||||||
Contents
|
|
||||||
========
|
|
||||||
|
|
||||||
This package contains the source for dupeGuru. To learn how to build it, refer to the "Build dupeGuru" section. Below is the description of the various subfolders:
|
|
||||||
|
|
||||||
- core: Contains the core logic code for dupeGuru. It's Python code written in TDD style.
|
|
||||||
- core_*: Edition-specific-cross-toolkit code written in Python.
|
|
||||||
- cocoa: UI code for the Cocoa toolkit. It's Objective-C code.
|
|
||||||
- qt: UI code for the Qt toolkit. It's written in Python and uses PyQt.
|
|
||||||
- images: Images used by the different UI codebases.
|
|
||||||
- debian_*: Skeleton files required to create a .deb package
|
|
||||||
- help: Help document, written for Sphinx.
|
|
||||||
|
|
||||||
There are also other sub-folder that comes from external repositories (automatically checked out
|
|
||||||
with as mercurial subrepos):
|
|
||||||
|
|
||||||
- hscommon: A collection of helpers used across HS applications.
|
|
||||||
- cocoalib: A collection of helpers used across Cocoa UI codebases of HS applications.
|
|
||||||
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.
|
|
||||||
|
|
||||||
dupeGuru Dependencies
|
|
||||||
=====================
|
|
||||||
|
|
||||||
Before being able to build dupeGuru, a few dependencies have to be installed:
|
|
||||||
|
|
||||||
General dependencies
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
- Python 3.2 (http://www.python.org)
|
|
||||||
- Send2Trash3k (http://hg.hardcoded.net/send2trash)
|
|
||||||
- hsaudiotag3k 1.1.0 (for ME) (http://hg.hardcoded.net/hsaudiotag)
|
|
||||||
- jobprogress 1.0.3 (http://hg.hardcoded.net/jobprogress)
|
|
||||||
- Sphinx 1.1 (http://sphinx.pocoo.org/)
|
|
||||||
- polib 0.7.0 (http://bitbucket.org/izi/polib)
|
|
||||||
- pytest 2.0.0, to run unit tests. (http://pytest.org/)
|
|
||||||
|
|
||||||
OS X prerequisites
|
|
||||||
------------------
|
|
||||||
|
|
||||||
- XCode 4.1
|
|
||||||
- Sparkle (http://sparkle.andymatuschak.org/)
|
|
||||||
- objp 1.1.0 (http://bitbucket.org/hsoft/objp)
|
|
||||||
- pluginbuilder 1.1.0 (http://bitbucket.org/hsoft/pluginbuilder)
|
|
||||||
- appscript 1.0.0 for ME and PE (http://appscript.sourceforge.net/)
|
|
||||||
|
|
||||||
Windows prerequisites
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
- Visual Studio 2008 (Express is enough) is needed to build C extensions. (http://www.microsoft.com/Express/)
|
|
||||||
- PyQt 4.7.5 (http://www.riverbankcomputing.co.uk/news)
|
|
||||||
- cx_Freeze, if you want to build a exe. You don't need it if you just want to run dupeGuru. (http://cx-freeze.sourceforge.net/)
|
|
||||||
- Advanced Installer, if you want to build the installer file. (http://www.advancedinstaller.com/)
|
|
||||||
|
|
||||||
Linux prerequisites
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
- PyQt 4.7.5 (http://www.riverbankcomputing.co.uk/news)
|
|
||||||
|
|
||||||
The easy way!
|
|
||||||
-------------
|
|
||||||
|
|
||||||
There's an easy way to install the majority of the prerequisites above, and it's `pip <http://www.pip-installer.org/>`_ which has recently started to support Python 3. So install it and then run::
|
|
||||||
|
|
||||||
pip install -r requirements-[osx|win].txt
|
|
||||||
|
|
||||||
([osx|win] depends, of course, on your platform. On other platforms, just use requirements.txt).
|
|
||||||
You might have to compile PyObjC manually (see gotchas below). Sparkle and
|
|
||||||
Advanced Installer, having nothing to do with Python, are also manual installs.
|
|
||||||
|
|
||||||
PyQt isn't in the requirements file either (there's no package uploaded on PyPI) and you also have
|
|
||||||
to install it manually.
|
|
||||||
|
|
||||||
Prerequisite gotchas
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
Correctly installing the prerequisites is tricky. Make sure you have at least the version number
|
|
||||||
required for each prerequisite.
|
|
||||||
|
|
||||||
If you didn't use mercurial to download this source, you probably have an incomplete source folder!
|
|
||||||
External projects (hscommon, qtlib, cocoalib) need to be at the root of the dupeGuru project folder.
|
|
||||||
You'll have to download those separately. Or use mercurial, it's much easier.
|
|
||||||
|
|
||||||
Another one on OS X: I wouldn't use macports/fink/whatever. Whenever I tried using those, I always
|
|
||||||
ended up with problems.
|
|
||||||
|
|
||||||
Whenever you have a problem, always double-check that you're running the correct python version.
|
|
||||||
You'll probably have to tweak your $PATH.
|
|
||||||
|
|
||||||
To setup a build machine under Ubuntu 12.04 and up, install those packages: python3, python3-pyqt4,
|
|
||||||
pyqt4-dev-tools, mercurial and then python3-setuptools. Once you've done that, install pip with
|
|
||||||
`easy_install`. Once you've done that, you can then perform "The easy way!" installation.
|
|
||||||
|
|
||||||
Building dupeGuru
|
|
||||||
=================
|
|
||||||
|
|
||||||
First, make sure you meet the dependencies listed in the section above. Then you need to configure your build with:
|
|
||||||
|
|
||||||
python configure.py
|
|
||||||
|
|
||||||
If you want, you can specify a UI to use with the `--ui` option. So, if you want to build dupeGuru with Qt on OS X, then you have to type `python configure.py --ui=qt`. You can also use the `--dev` flag to indicate a dev build (it will build `dg_cocoa.plugin` in alias mode and use the "dev" config in XCode).
|
|
||||||
|
|
||||||
Then, just build the thing and then run it with:
|
|
||||||
|
|
||||||
python build.py
|
|
||||||
python run.py
|
|
||||||
|
|
||||||
If you want to create ready-to-upload package, run:
|
|
||||||
|
|
||||||
python package.py
|
|
97
README.md
Normal file
97
README.md
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
# dupeGuru
|
||||||
|
|
||||||
|
[dupeGuru][dupeguru] is a cross-platform (Linux, OS X, Windows) GUI tool to find duplicate files in
|
||||||
|
a system. It is written mostly in Python 3 and uses [qt](https://www.qt.io/) for the UI.
|
||||||
|
|
||||||
|
## Current status
|
||||||
|
Still looking for additional help especially with regards to:
|
||||||
|
* OSX maintenance: reproducing bugs, packaging verification.
|
||||||
|
* Linux maintenance: reproducing bugs, maintaining PPA repository, Debian package, rpm package.
|
||||||
|
* Translations: updating missing strings, transifex project at https://www.transifex.com/voltaicideas/dupeguru-1
|
||||||
|
* Documentation: keeping it up-to-date.
|
||||||
|
|
||||||
|
## Contents of this folder
|
||||||
|
|
||||||
|
This folder contains the source for dupeGuru. Its documentation is in `help`, but is also
|
||||||
|
[available online][documentation] in its built form. Here's how this source tree is organized:
|
||||||
|
|
||||||
|
* core: Contains the core logic code for dupeGuru. It's Python code.
|
||||||
|
* qt: UI code for the Qt toolkit. It's written in Python and uses PyQt.
|
||||||
|
* images: Images used by the different UI codebases.
|
||||||
|
* pkg: Skeleton files required to create different packages
|
||||||
|
* help: Help document, written for Sphinx.
|
||||||
|
* locale: .po files for localization.
|
||||||
|
* hscommon: A collection of helpers used across HS applications.
|
||||||
|
|
||||||
|
## How to build dupeGuru from source
|
||||||
|
|
||||||
|
### Windows & macOS specific additional instructions
|
||||||
|
For windows instructions see the [Windows Instructions](Windows.md).
|
||||||
|
|
||||||
|
For macos instructions (qt version) see the [macOS Instructions](macos.md).
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
* [Python 3.7+][python]
|
||||||
|
* PyQt5
|
||||||
|
|
||||||
|
### System Setup
|
||||||
|
When running in a linux based environment the following system packages or equivalents are needed to build:
|
||||||
|
* python3-pyqt5
|
||||||
|
* pyqt5-dev-tools (on some systems, see note)
|
||||||
|
* python3-venv (only if using a virtual environment)
|
||||||
|
* python3-dev
|
||||||
|
* build-essential
|
||||||
|
|
||||||
|
Note: On some linux systems pyrcc5 is not put on the path when installing python3-pyqt5, this will cause some issues with the resource files (and icons). These systems should have a respective pyqt5-dev-tools package, which should also be installed. The presence of pyrcc5 can be checked with `which pyrcc5`. Debian based systems need the extra package, and Arch does not.
|
||||||
|
|
||||||
|
To create packages the following are also needed:
|
||||||
|
* python3-setuptools
|
||||||
|
* debhelper
|
||||||
|
|
||||||
|
### Building with Make
|
||||||
|
dupeGuru comes with a makefile that can be used to build and run:
|
||||||
|
|
||||||
|
$ make && make run
|
||||||
|
|
||||||
|
### Building without Make
|
||||||
|
|
||||||
|
$ cd <dupeGuru directory>
|
||||||
|
$ python3 -m venv --system-site-packages ./env
|
||||||
|
$ source ./env/bin/activate
|
||||||
|
$ pip install -r requirements.txt
|
||||||
|
$ python build.py
|
||||||
|
$ python run.py
|
||||||
|
|
||||||
|
### Generating Debian/Ubuntu package
|
||||||
|
To generate packages the extra requirements in requirements-extra.txt must be installed, the
|
||||||
|
steps are as follows:
|
||||||
|
|
||||||
|
$ cd <dupeGuru directory>
|
||||||
|
$ python3 -m venv --system-site-packages ./env
|
||||||
|
$ source ./env/bin/activate
|
||||||
|
$ pip install -r requirements.txt -r requirements-extra.txt
|
||||||
|
$ python build.py --clean
|
||||||
|
$ python package.py
|
||||||
|
|
||||||
|
This can be made a one-liner (once in the directory) as:
|
||||||
|
|
||||||
|
$ bash -c "python3 -m venv --system-site-packages env && source env/bin/activate && pip install -r requirements.txt -r requirements-extra.txt && python build.py --clean && python package.py"
|
||||||
|
|
||||||
|
## Running tests
|
||||||
|
|
||||||
|
The complete test suite is run with [Tox 1.7+][tox]. If you have it installed system-wide, you
|
||||||
|
don't even need to set up a virtualenv. Just `cd` into the root project folder and run `tox`.
|
||||||
|
|
||||||
|
If you don't have Tox system-wide, install it in your virtualenv with `pip install tox` and then
|
||||||
|
run `tox`.
|
||||||
|
|
||||||
|
You can also run automated tests without Tox. Extra requirements for running tests are in
|
||||||
|
`requirements-extra.txt`. So, you can do `pip install -r requirements-extra.txt` inside your
|
||||||
|
virtualenv and then `py.test core hscommon`
|
||||||
|
|
||||||
|
[dupeguru]: https://dupeguru.voltaicideas.net/
|
||||||
|
[cross-toolkit]: http://www.hardcoded.net/articles/cross-toolkit-software
|
||||||
|
[documentation]: http://dupeguru.voltaicideas.net/help/en/
|
||||||
|
[python]: http://www.python.org/
|
||||||
|
[pyqt]: http://www.riverbankcomputing.com
|
||||||
|
[tox]: https://tox.readthedocs.org/en/latest/
|
55
Windows.md
Normal file
55
Windows.md
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
## How to build dupeGuru for Windows
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- [Python 3.7+][python]
|
||||||
|
- [Visual Studio 2019][vs] or [Visual Studio Build Tools 2019][vsBuildTools] with the Windows 10 SDK
|
||||||
|
- [nsis][nsis] (for installer creation)
|
||||||
|
- [msys2][msys2] (for using makefile method)
|
||||||
|
|
||||||
|
NOTE: When installing Visual Studio or the Visual Studio Build Tools with the Windows 10 SDK on versions of Windows below 10 be sure to make sure that the Universal CRT is installed before installing Visual studio as noted in the [Windows 10 SDK Notes][win10sdk] and found at [KB2999226][KB2999226].
|
||||||
|
|
||||||
|
After installing python it is recommended to update setuptools before compiling packages. To update run (example is for python launcher and 3.8):
|
||||||
|
|
||||||
|
$ py -3.8 -m pip install --upgrade setuptools
|
||||||
|
|
||||||
|
More details on setting up python for compiling packages on windows can be found on the [python wiki][pythonWindowsCompilers] Take note of the required vc++ versions.
|
||||||
|
|
||||||
|
### With build.py (preferred)
|
||||||
|
To build with a different python version 3.7 vs 3.8 or 32 bit vs 64 bit specify that version instead of -3.8 to the `py` command below. If you want to build additional versions while keeping all virtual environments setup use a different location for each virtual environment.
|
||||||
|
|
||||||
|
$ cd <dupeGuru directory>
|
||||||
|
$ py -3.8 -m venv .\env
|
||||||
|
$ .\env\Scripts\activate
|
||||||
|
$ pip install -r requirements.txt
|
||||||
|
$ python build.py
|
||||||
|
$ python run.py
|
||||||
|
|
||||||
|
### With makefile
|
||||||
|
It is possible to build dupeGuru with the makefile on windows using a compatable POSIX environment. The following steps have been tested using [msys2][msys2]. Before running make:
|
||||||
|
1. Install msys2 or other POSIX environment
|
||||||
|
2. Install PyQt5 globally via pip
|
||||||
|
3. Use the respective console for msys2 it is `msys2 msys`
|
||||||
|
|
||||||
|
Then the following execution of the makefile should work. Pass the correct value for PYTHON to the makefile if not on the path as python3.
|
||||||
|
|
||||||
|
$ cd <dupeGuru directory>
|
||||||
|
$ make PYTHON='py -3.8'
|
||||||
|
$ make run
|
||||||
|
|
||||||
|
### Generate Windows Installer Packages
|
||||||
|
You need to use the respective x86 or x64 version of python to build the 32 bit and 64 bit versions. The build scripts will automatically detect the python architecture for you. When using build.py make sure the resulting python works before continuing to package.py. NOTE: package.py looks for the 'makensis' executable in the default location for a 64 bit windows system. The extra requirements need to be installed to run packaging: `pip install -r requirements-extra.txt`. Run the following in the respective virtual environment.
|
||||||
|
|
||||||
|
$ python package.py
|
||||||
|
|
||||||
|
### Running tests
|
||||||
|
The complete test suite can be run with tox just like on linux. NOTE: The extra requirements need to be installed to run unit tests: `pip install -r requirements-extra.txt`.
|
||||||
|
|
||||||
|
[python]: http://www.python.org/
|
||||||
|
[nsis]: http://nsis.sourceforge.net/Main_Page
|
||||||
|
[vs]: https://www.visualstudio.com/downloads/#visual-studio-community-2019
|
||||||
|
[vsBuildTools]: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2019
|
||||||
|
[win10sdk]: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
|
||||||
|
[KB2999226]: https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
|
||||||
|
[pythonWindowsCompilers]: https://wiki.python.org/moin/WindowsCompilers
|
||||||
|
[msys2]: http://www.msys2.org/
|
361
build.py
361
build.py
@ -1,290 +1,165 @@
|
|||||||
# Created By: Virgil Dupras
|
# Copyright 2017 Virgil Dupras
|
||||||
# Created On: 2009-12-30
|
|
||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
#
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import os.path as op
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import shutil
|
import shutil
|
||||||
import json
|
from multiprocessing import Pool
|
||||||
import importlib
|
|
||||||
|
|
||||||
from setuptools import setup, Extension
|
|
||||||
|
|
||||||
|
from setuptools import sandbox
|
||||||
from hscommon import sphinxgen
|
from hscommon import sphinxgen
|
||||||
from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages, filereplace,
|
from hscommon.build import (
|
||||||
get_module_version, build_all_cocoa_locs, move_all, copy_sysconfig_files_for_embed, copy_all,
|
add_to_pythonpath,
|
||||||
move)
|
print_and_do,
|
||||||
|
fix_qt_resource_file,
|
||||||
|
)
|
||||||
from hscommon import loc
|
from hscommon import loc
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
usage = "usage: %prog [options]"
|
usage = "usage: %prog [options]"
|
||||||
parser = OptionParser(usage=usage)
|
parser = OptionParser(usage=usage)
|
||||||
parser.add_option('--clean', action='store_true', dest='clean',
|
parser.add_option(
|
||||||
help="Clean build folder before building")
|
"--clean",
|
||||||
parser.add_option('--doc', action='store_true', dest='doc',
|
action="store_true",
|
||||||
help="Build only the help file")
|
dest="clean",
|
||||||
parser.add_option('--loc', action='store_true', dest='loc',
|
help="Clean build folder before building",
|
||||||
help="Build only localization")
|
)
|
||||||
parser.add_option('--cocoamod', action='store_true', dest='cocoamod',
|
parser.add_option("--doc", action="store_true", dest="doc", help="Build only the help file (en)")
|
||||||
help="Build only Cocoa modules")
|
parser.add_option("--alldoc", action="store_true", dest="all_doc", help="Build only the help file in all languages")
|
||||||
parser.add_option('--updatepot', action='store_true', dest='updatepot',
|
parser.add_option("--loc", action="store_true", dest="loc", help="Build only localization")
|
||||||
help="Generate .pot files from source code.")
|
parser.add_option(
|
||||||
parser.add_option('--mergepot', action='store_true', dest='mergepot',
|
"--updatepot",
|
||||||
help="Update all .po files based on .pot files.")
|
action="store_true",
|
||||||
|
dest="updatepot",
|
||||||
|
help="Generate .pot files from source code.",
|
||||||
|
)
|
||||||
|
parser.add_option(
|
||||||
|
"--mergepot",
|
||||||
|
action="store_true",
|
||||||
|
dest="mergepot",
|
||||||
|
help="Update all .po files based on .pot files.",
|
||||||
|
)
|
||||||
|
parser.add_option(
|
||||||
|
"--normpo",
|
||||||
|
action="store_true",
|
||||||
|
dest="normpo",
|
||||||
|
help="Normalize all PO files (do this before commit).",
|
||||||
|
)
|
||||||
|
parser.add_option(
|
||||||
|
"--modules",
|
||||||
|
action="store_true",
|
||||||
|
dest="modules",
|
||||||
|
help="Build the python modules.",
|
||||||
|
)
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
return options
|
return options
|
||||||
|
|
||||||
def build_cocoa(edition, dev):
|
|
||||||
build_cocoa_proxy_module()
|
|
||||||
build_cocoa_bridging_interfaces(edition)
|
|
||||||
print("Building the cocoa layer")
|
|
||||||
from pluginbuilder import copy_embeddable_python_dylib, get_python_header_folder, collect_dependencies
|
|
||||||
copy_embeddable_python_dylib('build')
|
|
||||||
if not op.exists('build/PythonHeaders'):
|
|
||||||
os.symlink(get_python_header_folder(), 'build/PythonHeaders')
|
|
||||||
if not op.exists('build/py'):
|
|
||||||
os.mkdir('build/py')
|
|
||||||
cocoa_project_path = 'cocoa/{0}'.format(edition)
|
|
||||||
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
|
||||||
specific_packages = {
|
|
||||||
'se': ['core_se'],
|
|
||||||
'me': ['core_me'],
|
|
||||||
'pe': ['core_pe'],
|
|
||||||
}[edition]
|
|
||||||
tocopy = ['core', 'hscommon', 'cocoa/inter', 'cocoalib/cocoa'] + specific_packages
|
|
||||||
copy_packages(tocopy, 'build')
|
|
||||||
sys.path.insert(0, 'build')
|
|
||||||
collect_dependencies('build/dg_cocoa.py', 'build/py', excludes=['PyQt4'])
|
|
||||||
del sys.path[0]
|
|
||||||
if dev:
|
|
||||||
copy_packages(tocopy, 'build/py', create_links=True)
|
|
||||||
# Views are not referenced by python code, so they're not found by the collector.
|
|
||||||
copy_all('build/inter/*.so', 'build/py/inter')
|
|
||||||
copy_sysconfig_files_for_embed('build/py')
|
|
||||||
os.chdir(cocoa_project_path)
|
|
||||||
print('Generating Info.plist')
|
|
||||||
app_version = get_module_version('core_{}'.format(edition))
|
|
||||||
filereplace('InfoTemplate.plist', 'Info.plist', version=app_version)
|
|
||||||
print("Building the XCode project")
|
|
||||||
args = ['-project dupeguru.xcodeproj']
|
|
||||||
if dev:
|
|
||||||
args.append('-configuration dev')
|
|
||||||
else:
|
|
||||||
args.append('-configuration release')
|
|
||||||
args = ' '.join(args)
|
|
||||||
os.system('xcodebuild {0}'.format(args))
|
|
||||||
os.chdir('../..')
|
|
||||||
print("Creating the run.py file")
|
|
||||||
app_path = {
|
|
||||||
'se': 'cocoa/se/dupeGuru.app',
|
|
||||||
'me': 'cocoa/me/dupeGuru\\ ME.app',
|
|
||||||
'pe': 'cocoa/pe/dupeGuru\\ PE.app',
|
|
||||||
}[edition]
|
|
||||||
tmpl = open('run_template_cocoa.py', 'rt').read()
|
|
||||||
run_contents = tmpl.replace('{{app_path}}', app_path)
|
|
||||||
open('run.py', 'wt').write(run_contents)
|
|
||||||
|
|
||||||
def build_qt(edition, dev):
|
def build_one_help(language):
|
||||||
print("Building Qt stuff")
|
print(f"Generating Help in {language}")
|
||||||
print_and_do("pyrcc4 -py3 {0} > {1}".format(op.join('qt', 'base', 'dg.qrc'), op.join('qt', 'base', 'dg_rc.py')))
|
current_path = Path(".").absolute()
|
||||||
print("Creating the run.py file")
|
changelog_path = current_path.joinpath("help", "changelog")
|
||||||
tmpl = open('run_template_qt.py', 'rt').read()
|
tixurl = "https://github.com/arsenetar/dupeguru/issues/{}"
|
||||||
run_contents = tmpl.replace('{{edition}}', edition)
|
changelogtmpl = current_path.joinpath("help", "changelog.tmpl")
|
||||||
open('run.py', 'wt').write(run_contents)
|
conftmpl = current_path.joinpath("help", "conf.tmpl")
|
||||||
|
help_basepath = current_path.joinpath("help", language)
|
||||||
|
help_destpath = current_path.joinpath("build", "help", language)
|
||||||
|
confrepl = {"language": language}
|
||||||
|
sphinxgen.gen(
|
||||||
|
help_basepath,
|
||||||
|
help_destpath,
|
||||||
|
changelog_path,
|
||||||
|
tixurl,
|
||||||
|
confrepl,
|
||||||
|
conftmpl,
|
||||||
|
changelogtmpl,
|
||||||
|
)
|
||||||
|
|
||||||
def build_help(edition):
|
|
||||||
print("Generating Help")
|
|
||||||
current_path = op.abspath('.')
|
|
||||||
help_basepath = op.join(current_path, 'help', 'en')
|
|
||||||
help_destpath = op.join(current_path, 'build', 'help'.format(edition))
|
|
||||||
changelog_path = op.join(current_path, 'help', 'changelog_{}'.format(edition))
|
|
||||||
tixurl = "https://hardcoded.lighthouseapp.com/projects/31699-dupeguru/tickets/{0}"
|
|
||||||
appname = {'se': 'dupeGuru', 'me': 'dupeGuru Music Edition', 'pe': 'dupeGuru Picture Edition'}[edition]
|
|
||||||
homepage = 'http://www.hardcoded.net/dupeguru{}/'.format('_' + edition if edition != 'se' else '')
|
|
||||||
confrepl = {'edition': edition, 'appname': appname, 'homepage': homepage, 'language': 'en'}
|
|
||||||
changelogtmpl = op.join(current_path, 'help', 'changelog.tmpl')
|
|
||||||
conftmpl = op.join(current_path, 'help', 'conf.tmpl')
|
|
||||||
sphinxgen.gen(help_basepath, help_destpath, changelog_path, tixurl, confrepl, conftmpl, changelogtmpl)
|
|
||||||
|
|
||||||
def build_localizations(ui, edition):
|
def build_help():
|
||||||
print("Building localizations")
|
languages = ["en", "de", "fr", "hy", "ru", "uk"]
|
||||||
loc.compile_all_po('locale')
|
# Running with Pools as for some reason sphinx seems to cross contaminate the output otherwise
|
||||||
loc.compile_all_po(op.join('hscommon', 'locale'))
|
with Pool(len(languages)) as p:
|
||||||
loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale')
|
p.map(build_one_help, languages)
|
||||||
if ui == 'cocoa':
|
|
||||||
print("Creating lproj folders based on .po files")
|
|
||||||
for lang in loc.get_langs('locale'):
|
def build_localizations():
|
||||||
if lang == 'en':
|
loc.compile_all_po("locale")
|
||||||
continue
|
locale_dest = Path("build", "locale")
|
||||||
pofile = op.join('locale', lang, 'LC_MESSAGES', 'ui.po')
|
if locale_dest.exists():
|
||||||
for edition_folder in ['base', 'se', 'me', 'pe']:
|
shutil.rmtree(locale_dest)
|
||||||
enlproj = op.join('cocoa', edition_folder, 'en.lproj')
|
shutil.copytree("locale", locale_dest, ignore=shutil.ignore_patterns("*.po", "*.pot"))
|
||||||
dest_lproj = op.join('cocoa', edition_folder, lang + '.lproj')
|
|
||||||
loc.po2allxibstrings(pofile, enlproj, dest_lproj)
|
|
||||||
if edition_folder == 'base':
|
|
||||||
loc.po2strings(pofile, op.join(enlproj, 'Localizable.strings'), op.join(dest_lproj, 'Localizable.strings'))
|
|
||||||
pofile = op.join('cocoalib', 'locale', lang, 'LC_MESSAGES', 'cocoalib.po')
|
|
||||||
loc.po2allxibstrings(pofile, op.join('cocoalib', 'en.lproj'), op.join('cocoalib', lang + '.lproj'))
|
|
||||||
build_all_cocoa_locs('cocoalib')
|
|
||||||
build_all_cocoa_locs(op.join('cocoa', 'base'))
|
|
||||||
build_all_cocoa_locs(op.join('cocoa', edition))
|
|
||||||
elif ui == 'qt':
|
|
||||||
loc.compile_all_po(op.join('qtlib', 'locale'))
|
|
||||||
loc.merge_locale_dir(op.join('qtlib', 'locale'), 'locale')
|
|
||||||
if op.exists(op.join('build', 'locale')):
|
|
||||||
shutil.rmtree(op.join('build', 'locale'))
|
|
||||||
shutil.copytree('locale', op.join('build', 'locale'), ignore=shutil.ignore_patterns('*.po', '*.pot'))
|
|
||||||
|
|
||||||
def build_updatepot():
|
def build_updatepot():
|
||||||
print("Building .pot files from source files")
|
print("Building .pot files from source files")
|
||||||
print("Building core.pot")
|
print("Building core.pot")
|
||||||
all_cores = ['core', 'core_se', 'core_me', 'core_pe']
|
loc.generate_pot(["core"], Path("locale", "core.pot"), ["tr"])
|
||||||
loc.generate_pot(all_cores, op.join('locale', 'core.pot'), ['tr'])
|
|
||||||
print("Building columns.pot")
|
print("Building columns.pot")
|
||||||
loc.generate_pot(all_cores, op.join('locale', 'columns.pot'), ['coltr'])
|
loc.generate_pot(["core"], Path("locale", "columns.pot"), ["coltr"])
|
||||||
print("Building ui.pot")
|
print("Building ui.pot")
|
||||||
ui_packages = ['qt', op.join('cocoa', 'inter')]
|
loc.generate_pot(["qt"], Path("locale", "ui.pot"), ["tr"], merge=True)
|
||||||
loc.generate_pot(ui_packages, op.join('locale', 'ui.pot'), ['tr'])
|
|
||||||
print("Building hscommon.pot")
|
|
||||||
loc.generate_pot(['hscommon'], op.join('hscommon', 'locale', 'hscommon.pot'), ['tr'])
|
|
||||||
print("Building qtlib.pot")
|
|
||||||
loc.generate_pot(['qtlib'], op.join('qtlib', 'locale', 'qtlib.pot'), ['tr'])
|
|
||||||
print("Building cocoalib.pot")
|
|
||||||
loc.allstrings2pot(op.join('cocoalib', 'en.lproj'), op.join('cocoalib', 'locale', 'cocoalib.pot'))
|
|
||||||
print("Enhancing ui.pot with Cocoa's strings files")
|
|
||||||
loc.allstrings2pot(op.join('cocoa', 'base', 'en.lproj'), op.join('locale', 'ui.pot'),
|
|
||||||
excludes={'core', 'message', 'columns'})
|
|
||||||
loc.allstrings2pot(op.join('cocoa', 'se', 'en.lproj'), op.join('locale', 'ui.pot'))
|
|
||||||
loc.allstrings2pot(op.join('cocoa', 'me', 'en.lproj'), op.join('locale', 'ui.pot'))
|
|
||||||
loc.allstrings2pot(op.join('cocoa', 'pe', 'en.lproj'), op.join('locale', 'ui.pot'))
|
|
||||||
|
|
||||||
def build_mergepot():
|
def build_mergepot():
|
||||||
print("Updating .po files using .pot files")
|
print("Updating .po files using .pot files")
|
||||||
loc.merge_pots_into_pos('locale')
|
loc.merge_pots_into_pos("locale")
|
||||||
loc.merge_pots_into_pos(op.join('hscommon', 'locale'))
|
|
||||||
loc.merge_pots_into_pos(op.join('qtlib', 'locale'))
|
|
||||||
loc.merge_pots_into_pos(op.join('cocoalib', 'locale'))
|
|
||||||
|
|
||||||
def build_cocoa_ext(extname, dest, source_files, extra_frameworks=(), extra_includes=()):
|
|
||||||
extra_link_args = ["-framework", "CoreFoundation", "-framework", "Foundation"]
|
|
||||||
for extra in extra_frameworks:
|
|
||||||
extra_link_args += ['-framework', extra]
|
|
||||||
ext = Extension(extname, source_files, extra_link_args=extra_link_args, include_dirs=extra_includes)
|
|
||||||
setup(script_args=['build_ext', '--inplace'], ext_modules=[ext])
|
|
||||||
fn = extname + '.so'
|
|
||||||
assert op.exists(fn)
|
|
||||||
move(fn, op.join(dest, fn))
|
|
||||||
|
|
||||||
def build_cocoa_proxy_module():
|
def build_normpo():
|
||||||
print("Building Cocoa Proxy")
|
loc.normalize_all_pos("locale")
|
||||||
import objp.p2o
|
|
||||||
objp.p2o.generate_python_proxy_code('cocoalib/cocoa/CocoaProxy.h', 'build/CocoaProxy.m')
|
|
||||||
build_cocoa_ext("CocoaProxy", 'cocoalib/cocoa',
|
|
||||||
['cocoalib/cocoa/CocoaProxy.m', 'build/CocoaProxy.m', 'build/ObjP.m', 'cocoalib/HSErrorReportWindow.m'],
|
|
||||||
['AppKit', 'CoreServices'],
|
|
||||||
['cocoalib'])
|
|
||||||
|
|
||||||
def build_cocoa_bridging_interfaces(edition):
|
|
||||||
print("Building Cocoa Bridging Interfaces")
|
|
||||||
import objp.o2p
|
|
||||||
import objp.p2o
|
|
||||||
add_to_pythonpath('cocoa')
|
|
||||||
add_to_pythonpath('cocoalib')
|
|
||||||
from cocoa.inter import (PyGUIObject, GUIObjectView, PyColumns, ColumnsView, PyOutline,
|
|
||||||
OutlineView, PySelectableList, SelectableListView, PyTable, TableView, PyFairware)
|
|
||||||
from inter.deletion_options import PyDeletionOptions, DeletionOptionsView
|
|
||||||
from inter.details_panel import PyDetailsPanel, DetailsPanelView
|
|
||||||
from inter.directory_outline import PyDirectoryOutline, DirectoryOutlineView
|
|
||||||
from inter.prioritize_dialog import PyPrioritizeDialog, PrioritizeDialogView
|
|
||||||
from inter.prioritize_list import PyPrioritizeList, PrioritizeListView
|
|
||||||
from inter.problem_dialog import PyProblemDialog
|
|
||||||
from inter.ignore_list_dialog import PyIgnoreListDialog, IgnoreListDialogView
|
|
||||||
from inter.result_table import PyResultTable, ResultTableView
|
|
||||||
from inter.stats_label import PyStatsLabel, StatsLabelView
|
|
||||||
from inter.app import PyDupeGuruBase, DupeGuruView
|
|
||||||
appmod = importlib.import_module('inter.app_{}'.format(edition))
|
|
||||||
allclasses = [PyGUIObject, PyColumns, PyOutline, PySelectableList, PyTable, PyFairware,
|
|
||||||
PyDetailsPanel, PyDirectoryOutline, PyPrioritizeDialog, PyPrioritizeList, PyProblemDialog,
|
|
||||||
PyIgnoreListDialog, PyDeletionOptions, PyResultTable, PyStatsLabel, PyDupeGuruBase,
|
|
||||||
appmod.PyDupeGuru]
|
|
||||||
for class_ in allclasses:
|
|
||||||
objp.o2p.generate_objc_code(class_, 'cocoa/autogen', inherit=True)
|
|
||||||
allclasses = [GUIObjectView, ColumnsView, OutlineView, SelectableListView, TableView,
|
|
||||||
DetailsPanelView, DirectoryOutlineView, PrioritizeDialogView, PrioritizeListView,
|
|
||||||
IgnoreListDialogView, DeletionOptionsView, ResultTableView, StatsLabelView, DupeGuruView]
|
|
||||||
clsspecs = [objp.o2p.spec_from_python_class(class_) for class_ in allclasses]
|
|
||||||
objp.p2o.generate_python_proxy_code_from_clsspec(clsspecs, 'build/CocoaViews.m')
|
|
||||||
build_cocoa_ext('CocoaViews', 'cocoa/inter', ['build/CocoaViews.m', 'build/ObjP.m'])
|
|
||||||
|
|
||||||
def build_pe_modules(ui):
|
def build_pe_modules():
|
||||||
print("Building PE Modules")
|
print("Building PE Modules")
|
||||||
exts = [
|
# Leverage setup.py to build modules
|
||||||
Extension("_block", [op.join('core_pe', 'modules', 'block.c'), op.join('core_pe', 'modules', 'common.c')]),
|
sandbox.run_setup("setup.py", ["build_ext", "--inplace"])
|
||||||
Extension("_cache", [op.join('core_pe', 'modules', 'cache.c'), op.join('core_pe', 'modules', 'common.c')]),
|
|
||||||
]
|
|
||||||
if ui == 'qt':
|
|
||||||
exts.append(Extension("_block_qt", [op.join('qt', 'pe', 'modules', 'block.c')]))
|
|
||||||
elif ui == 'cocoa':
|
|
||||||
exts.append(Extension(
|
|
||||||
"_block_osx", [op.join('core_pe', 'modules', 'block_osx.m'), op.join('core_pe', 'modules', 'common.c')],
|
|
||||||
extra_link_args=[
|
|
||||||
"-framework", "CoreFoundation",
|
|
||||||
"-framework", "Foundation",
|
|
||||||
"-framework", "ApplicationServices",]
|
|
||||||
))
|
|
||||||
setup(
|
|
||||||
script_args = ['build_ext', '--inplace'],
|
|
||||||
ext_modules = exts,
|
|
||||||
)
|
|
||||||
move_all('_block_qt*', op.join('qt', 'pe'))
|
|
||||||
move_all('_block*', 'core_pe')
|
|
||||||
move_all('_cache*', 'core_pe')
|
|
||||||
|
|
||||||
def build_normal(edition, ui, dev):
|
|
||||||
print("Building dupeGuru {0} with UI {1}".format(edition.upper(), ui))
|
def build_normal():
|
||||||
add_to_pythonpath('.')
|
print("Building dupeGuru with UI qt")
|
||||||
build_help(edition)
|
add_to_pythonpath(".")
|
||||||
build_localizations(ui, edition)
|
|
||||||
print("Building dupeGuru")
|
print("Building dupeGuru")
|
||||||
if edition == 'pe':
|
build_pe_modules()
|
||||||
build_pe_modules(ui)
|
print("Building localizations")
|
||||||
if ui == 'cocoa':
|
build_localizations()
|
||||||
build_cocoa(edition, dev)
|
print("Building Qt stuff")
|
||||||
elif ui == 'qt':
|
Path("qt", "dg_rc.py").unlink(missing_ok=True)
|
||||||
build_qt(edition, dev)
|
print_and_do("pyrcc5 {} > {}".format(Path("qt", "dg.qrc"), Path("qt", "dg_rc.py")))
|
||||||
|
fix_qt_resource_file(Path("qt", "dg_rc.py"))
|
||||||
|
build_help()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if sys.version_info < (3, 7):
|
||||||
|
sys.exit("Python < 3.7 is unsupported.")
|
||||||
options = parse_args()
|
options = parse_args()
|
||||||
conf = json.load(open('conf.json'))
|
if options.clean and Path("build").exists():
|
||||||
edition = conf['edition']
|
shutil.rmtree("build")
|
||||||
ui = conf['ui']
|
if not Path("build").exists():
|
||||||
dev = conf['dev']
|
Path("build").mkdir()
|
||||||
if dev:
|
|
||||||
print("Building in Dev mode")
|
|
||||||
if options.clean:
|
|
||||||
if op.exists('build'):
|
|
||||||
shutil.rmtree('build')
|
|
||||||
if not op.exists('build'):
|
|
||||||
os.mkdir('build')
|
|
||||||
if options.doc:
|
if options.doc:
|
||||||
build_help(edition)
|
build_one_help("en")
|
||||||
|
elif options.all_doc:
|
||||||
|
build_help()
|
||||||
elif options.loc:
|
elif options.loc:
|
||||||
build_localizations(ui, edition)
|
build_localizations()
|
||||||
elif options.updatepot:
|
elif options.updatepot:
|
||||||
build_updatepot()
|
build_updatepot()
|
||||||
elif options.mergepot:
|
elif options.mergepot:
|
||||||
build_mergepot()
|
build_mergepot()
|
||||||
elif options.cocoamod:
|
elif options.normpo:
|
||||||
build_cocoa_proxy_module()
|
build_normpo()
|
||||||
build_cocoa_bridging_interfaces(edition)
|
elif options.modules:
|
||||||
|
build_pe_modules()
|
||||||
else:
|
else:
|
||||||
build_normal(edition, ui, dev)
|
build_normal()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
#import "DetailsPanel.h"
|
|
||||||
#import "DirectoryPanel.h"
|
|
||||||
#import "IgnoreListDialog.h"
|
|
||||||
#import "HSAboutBox.h"
|
|
||||||
#import "HSRecentFiles.h"
|
|
||||||
|
|
||||||
@interface AppDelegateBase : NSObject
|
|
||||||
{
|
|
||||||
IBOutlet NSMenu *recentResultsMenu;
|
|
||||||
IBOutlet NSMenu *actionsMenu;
|
|
||||||
IBOutlet NSMenu *columnsMenu;
|
|
||||||
|
|
||||||
PyDupeGuru *model;
|
|
||||||
ResultWindowBase *_resultWindow;
|
|
||||||
DirectoryPanel *_directoryPanel;
|
|
||||||
DetailsPanel *_detailsPanel;
|
|
||||||
IgnoreListDialog *_ignoreListDialog;
|
|
||||||
NSWindowController *_preferencesPanel;
|
|
||||||
HSAboutBox *_aboutBox;
|
|
||||||
HSRecentFiles *_recentResults;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Virtual */
|
|
||||||
- (PyDupeGuru *)model;
|
|
||||||
- (ResultWindowBase *)createResultWindow;
|
|
||||||
- (DirectoryPanel *)createDirectoryPanel;
|
|
||||||
- (DetailsPanel *)createDetailsPanel;
|
|
||||||
- (NSString *)homepageURL;
|
|
||||||
|
|
||||||
/* Public */
|
|
||||||
- (ResultWindowBase *)resultWindow;
|
|
||||||
- (DirectoryPanel *)directoryPanel;
|
|
||||||
- (DetailsPanel *)detailsPanel;
|
|
||||||
- (HSRecentFiles *)recentResults;
|
|
||||||
- (NSMenu *)columnsMenu;
|
|
||||||
|
|
||||||
/* Delegate */
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
|
|
||||||
- (void)applicationWillBecomeActive:(NSNotification *)aNotification;
|
|
||||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
|
|
||||||
- (void)applicationWillTerminate:(NSNotification *)aNotification;
|
|
||||||
- (void)recentFileClicked:(NSString *)path;
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
- (IBAction)loadResults:(id)sender;
|
|
||||||
- (IBAction)openWebsite:(id)sender;
|
|
||||||
- (IBAction)openHelp:(id)sender;
|
|
||||||
- (IBAction)showAboutBox:(id)sender;
|
|
||||||
- (IBAction)showDirectoryWindow:(id)sender;
|
|
||||||
- (IBAction)showPreferencesPanel:(id)sender;
|
|
||||||
- (IBAction)showResultWindow:(id)sender;
|
|
||||||
- (IBAction)showIgnoreList:(id)sender;
|
|
||||||
- (IBAction)startScanning:(id)sender;
|
|
||||||
|
|
||||||
/* model --> view */
|
|
||||||
- (void)showMessage:(NSString *)msg;
|
|
||||||
- (void)setupAsRegistered;
|
|
||||||
- (void)showFairwareNagWithPrompt:(NSString *)prompt;
|
|
||||||
- (void)showDemoNagWithPrompt:(NSString *)prompt;
|
|
||||||
@end
|
|
@ -1,261 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
#import "ProgressController.h"
|
|
||||||
#import "HSFairwareReminder.h"
|
|
||||||
#import "HSPyUtil.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "ValueTransformers.h"
|
|
||||||
#import <Sparkle/SUUpdater.h>
|
|
||||||
|
|
||||||
@implementation AppDelegateBase
|
|
||||||
+ (void)initialize
|
|
||||||
{
|
|
||||||
HSVTAdd *vt = [[[HSVTAdd alloc] initWithValue:4] autorelease];
|
|
||||||
[NSValueTransformer setValueTransformer:vt forName:@"vtRowHeightOffset"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)awakeFromNib
|
|
||||||
{
|
|
||||||
model = [[PyDupeGuru alloc] init];
|
|
||||||
[model bindCallback:createCallback(@"DupeGuruView", self)];
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
/* Because the pref pane is lazily loaded, we have to manually do the update check if the
|
|
||||||
preference is set.
|
|
||||||
*/
|
|
||||||
if ([ud boolForKey:@"SUEnableAutomaticChecks"]) {
|
|
||||||
[[SUUpdater sharedUpdater] checkForUpdatesInBackground];
|
|
||||||
}
|
|
||||||
_recentResults = [[HSRecentFiles alloc] initWithName:@"recentResults" menu:recentResultsMenu];
|
|
||||||
[_recentResults setDelegate:self];
|
|
||||||
_resultWindow = [self createResultWindow];
|
|
||||||
_directoryPanel = [self createDirectoryPanel];
|
|
||||||
_detailsPanel = [self createDetailsPanel];
|
|
||||||
_ignoreListDialog = [[IgnoreListDialog alloc] initWithPyRef:[model ignoreListDialog]];
|
|
||||||
_aboutBox = nil; // Lazily loaded
|
|
||||||
_preferencesPanel = nil; // Lazily loaded
|
|
||||||
[[[self directoryPanel] window] makeKeyAndOrderFront:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Virtual */
|
|
||||||
|
|
||||||
- (PyDupeGuru *)model
|
|
||||||
{
|
|
||||||
return model;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (ResultWindowBase *)createResultWindow
|
|
||||||
{
|
|
||||||
return nil; // must be overriden by all editions
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DirectoryPanel *)createDirectoryPanel
|
|
||||||
{
|
|
||||||
return [[DirectoryPanel alloc] initWithParentApp:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DetailsPanel *)createDetailsPanel
|
|
||||||
{
|
|
||||||
return [[DetailsPanel alloc] initWithPyRef:[model detailsPanel]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)homepageURL
|
|
||||||
{
|
|
||||||
return @""; // must be overriden by all editions
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Public */
|
|
||||||
- (ResultWindowBase *)resultWindow
|
|
||||||
{
|
|
||||||
return _resultWindow;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DirectoryPanel *)directoryPanel
|
|
||||||
{
|
|
||||||
return _directoryPanel;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DetailsPanel *)detailsPanel
|
|
||||||
{
|
|
||||||
return _detailsPanel;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (HSRecentFiles *)recentResults
|
|
||||||
{
|
|
||||||
return _recentResults;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSMenu *)columnsMenu { return columnsMenu; }
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
- (IBAction)loadResults:(id)sender
|
|
||||||
{
|
|
||||||
NSOpenPanel *op = [NSOpenPanel openPanel];
|
|
||||||
[op setCanChooseFiles:YES];
|
|
||||||
[op setCanChooseDirectories:NO];
|
|
||||||
[op setCanCreateDirectories:NO];
|
|
||||||
[op setAllowsMultipleSelection:NO];
|
|
||||||
[op setAllowedFileTypes:[NSArray arrayWithObject:@"dupeguru"]];
|
|
||||||
[op setTitle:TR(@"Select a results file to load")];
|
|
||||||
if ([op runModal] == NSOKButton) {
|
|
||||||
NSString *filename = [[op filenames] objectAtIndex:0];
|
|
||||||
[model loadResultsFrom:filename];
|
|
||||||
[[self recentResults] addFile:filename];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)openWebsite:(id)sender
|
|
||||||
{
|
|
||||||
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[self homepageURL]]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)openHelp:(id)sender
|
|
||||||
{
|
|
||||||
NSBundle *b = [NSBundle mainBundle];
|
|
||||||
NSString *p = [b pathForResource:@"index" ofType:@"html" inDirectory:@"help"];
|
|
||||||
NSURL *u = [NSURL fileURLWithPath:p];
|
|
||||||
[[NSWorkspace sharedWorkspace] openURL:u];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)showAboutBox:(id)sender
|
|
||||||
{
|
|
||||||
if (_aboutBox == nil) {
|
|
||||||
_aboutBox = [[HSAboutBox alloc] initWithApp:model];
|
|
||||||
}
|
|
||||||
[[_aboutBox window] makeKeyAndOrderFront:sender];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)showDirectoryWindow:(id)sender
|
|
||||||
{
|
|
||||||
[[[self directoryPanel] window] makeKeyAndOrderFront:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)showPreferencesPanel:(id)sender
|
|
||||||
{
|
|
||||||
if (_preferencesPanel == nil) {
|
|
||||||
_preferencesPanel = [[NSWindowController alloc] initWithWindowNibName:@"Preferences"];
|
|
||||||
}
|
|
||||||
[_preferencesPanel showWindow:sender];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)showResultWindow:(id)sender
|
|
||||||
{
|
|
||||||
[[[self resultWindow] window] makeKeyAndOrderFront:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)showIgnoreList:(id)sender
|
|
||||||
{
|
|
||||||
[model showIgnoreList];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)startScanning:(id)sender
|
|
||||||
{
|
|
||||||
[[self resultWindow] startDuplicateScan:sender];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Delegate */
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
[[ProgressController mainProgressController] setWorker:model];
|
|
||||||
[model initialRegistrationSetup];
|
|
||||||
[model loadSession];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)applicationWillBecomeActive:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
if (![[[self directoryPanel] window] isVisible]) {
|
|
||||||
[[self directoryPanel] showWindow:NSApp];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
|
||||||
{
|
|
||||||
if ([model resultsAreModified]) {
|
|
||||||
NSString *msg = TR(@"You have unsaved results, do you really want to quit?");
|
|
||||||
if ([Dialogs askYesNo:msg] == NSAlertSecondButtonReturn) { // NO
|
|
||||||
return NSTerminateCancel;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return NSTerminateNow;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)applicationWillTerminate:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
NSInteger sc = [ud integerForKey:@"sessionCountSinceLastIgnorePurge"];
|
|
||||||
if (sc >= 10) {
|
|
||||||
sc = -1;
|
|
||||||
[model purgeIgnoreList];
|
|
||||||
}
|
|
||||||
sc++;
|
|
||||||
[model saveSession];
|
|
||||||
[ud setInteger:sc forKey:@"sessionCountSinceLastIgnorePurge"];
|
|
||||||
// NSApplication does not release nib instances objects, we must do it manually
|
|
||||||
// Well, it isn't needed because the memory is freed anyway (we are quitting the application
|
|
||||||
// But I need to release HSRecentFiles so it saves the user defaults
|
|
||||||
[_directoryPanel release];
|
|
||||||
[_recentResults release];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)recentFileClicked:(NSString *)path
|
|
||||||
{
|
|
||||||
[model loadResultsFrom:path];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* model --> view */
|
|
||||||
- (void)showMessage:(NSString *)msg
|
|
||||||
{
|
|
||||||
[Dialogs showMessage:msg];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)askYesNoWithPrompt:(NSString *)prompt
|
|
||||||
{
|
|
||||||
return [Dialogs askYesNo:prompt] == NSAlertFirstButtonReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)showProblemDialog
|
|
||||||
{
|
|
||||||
[[self resultWindow] showProblemDialog];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setupAsRegistered
|
|
||||||
{
|
|
||||||
// Nothing to do.
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)showFairwareNagWithPrompt:(NSString *)prompt
|
|
||||||
{
|
|
||||||
[HSFairwareReminder showFairwareNagWithApp:[self model] prompt:prompt];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)showDemoNagWithPrompt:(NSString *)prompt
|
|
||||||
{
|
|
||||||
[HSFairwareReminder showDemoNagWithApp:[self model] prompt:prompt];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)selectDestFolderWithPrompt:(NSString *)prompt
|
|
||||||
{
|
|
||||||
NSOpenPanel *op = [NSOpenPanel openPanel];
|
|
||||||
[op setCanChooseFiles:NO];
|
|
||||||
[op setCanChooseDirectories:YES];
|
|
||||||
[op setCanCreateDirectories:YES];
|
|
||||||
[op setAllowsMultipleSelection:NO];
|
|
||||||
[op setTitle:prompt];
|
|
||||||
if ([op runModal] == NSOKButton) {
|
|
||||||
return [[op filenames] objectAtIndex:0];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
@ -1,21 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "HSConsts.h"
|
|
||||||
|
|
||||||
#define JobStarted @"JobStarted"
|
|
||||||
#define JobInProgress @"JobInProgress"
|
|
||||||
#define TableFontSize @"TableFontSize"
|
|
||||||
|
|
||||||
#define jobLoad @"job_load"
|
|
||||||
#define jobScan @"job_scan"
|
|
||||||
#define jobCopy @"job_copy"
|
|
||||||
#define jobMove @"job_move"
|
|
||||||
#define jobDelete @"job_delete"
|
|
||||||
|
|
||||||
#define DGPrioritizeIndexPasteboardType @"DGPrioritizeIndexPasteboardType"
|
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "PyDeletionOptions.h"
|
|
||||||
|
|
||||||
@interface DeletionOptions : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSTextField *messageTextField;
|
|
||||||
IBOutlet NSButton *hardlinkButton;
|
|
||||||
IBOutlet NSButton *directButton;
|
|
||||||
|
|
||||||
PyDeletionOptions *model;
|
|
||||||
}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef;
|
|
||||||
|
|
||||||
- (IBAction)updateOptions:(id)sender;
|
|
||||||
- (IBAction)proceed:(id)sender;
|
|
||||||
- (IBAction)cancel:(id)sender;
|
|
||||||
@end
|
|
@ -1,58 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "DeletionOptions.h"
|
|
||||||
#import "HSPyUtil.h"
|
|
||||||
|
|
||||||
@implementation DeletionOptions
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"DeletionOptions"];
|
|
||||||
[self window];
|
|
||||||
model = [[PyDeletionOptions alloc] initWithModel:aPyRef];
|
|
||||||
[model bindCallback:createCallback(@"DeletionOptionsView", self)];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[model release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)updateOptions:(id)sender
|
|
||||||
{
|
|
||||||
[model setHardlink:[hardlinkButton state] == NSOnState];
|
|
||||||
[model setDirect:[directButton state] == NSOnState];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)proceed:(id)sender
|
|
||||||
{
|
|
||||||
[NSApp stopModalWithCode:NSOKButton];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)cancel:(id)sender
|
|
||||||
{
|
|
||||||
[NSApp stopModalWithCode:NSCancelButton];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* model --> view */
|
|
||||||
- (void)updateMsg:(NSString *)msg
|
|
||||||
{
|
|
||||||
[messageTextField setStringValue:msg];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)show
|
|
||||||
{
|
|
||||||
[hardlinkButton setState:NSOffState];
|
|
||||||
[directButton setState:NSOffState];
|
|
||||||
NSInteger r = [NSApp runModalForWindow:[self window]];
|
|
||||||
[[self window] close];
|
|
||||||
return r == NSOKButton;
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import <Python.h>
|
|
||||||
#import "PyDetailsPanel.h"
|
|
||||||
|
|
||||||
@interface DetailsPanel : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSTableView *detailsTable;
|
|
||||||
|
|
||||||
PyDetailsPanel *model;
|
|
||||||
}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef;
|
|
||||||
- (PyDetailsPanel *)model;
|
|
||||||
|
|
||||||
- (BOOL)isVisible;
|
|
||||||
- (void)toggleVisibility;
|
|
||||||
|
|
||||||
/* Python --> Cocoa */
|
|
||||||
- (void)refresh;
|
|
||||||
@end
|
|
@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "DetailsPanel.h"
|
|
||||||
#import "HSPyUtil.h"
|
|
||||||
|
|
||||||
@implementation DetailsPanel
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"DetailsPanel"];
|
|
||||||
[self window]; //So the detailsTable is initialized.
|
|
||||||
model = [[PyDetailsPanel alloc] initWithModel:aPyRef];
|
|
||||||
[model bindCallback:createCallback(@"DetailsPanelView", self)];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[model release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyDetailsPanel *)model
|
|
||||||
{
|
|
||||||
return (PyDetailsPanel *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)refreshDetails
|
|
||||||
{
|
|
||||||
[detailsTable reloadData];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)isVisible
|
|
||||||
{
|
|
||||||
return [[self window] isVisible];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)toggleVisibility
|
|
||||||
{
|
|
||||||
if ([self isVisible]) {
|
|
||||||
[[self window] close];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[self refreshDetails]; // selection might have changed since last time
|
|
||||||
[[self window] orderFront:nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* NSTableView Delegate */
|
|
||||||
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
|
|
||||||
{
|
|
||||||
return [[self model] numberOfRows];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)column row:(NSInteger)row
|
|
||||||
{
|
|
||||||
return [[self model] valueForColumn:[column identifier] row:row];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Python --> Cocoa */
|
|
||||||
- (void)refresh
|
|
||||||
{
|
|
||||||
if ([[self window] isVisible]) {
|
|
||||||
[self refreshDetails];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import <Python.h>
|
|
||||||
#import "HSOutline.h"
|
|
||||||
#import "PyDirectoryOutline.h"
|
|
||||||
|
|
||||||
#define DGAddedFoldersNotification @"DGAddedFoldersNotification"
|
|
||||||
|
|
||||||
@interface DirectoryOutline : HSOutline {}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef outlineView:(HSOutlineView *)aOutlineView;
|
|
||||||
- (PyDirectoryOutline *)model;
|
|
||||||
@end;
|
|
@ -1,81 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "DirectoryOutline.h"
|
|
||||||
|
|
||||||
@implementation DirectoryOutline
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef outlineView:(HSOutlineView *)aOutlineView
|
|
||||||
{
|
|
||||||
self = [super initWithPyRef:aPyRef wrapperClass:[PyDirectoryOutline class]
|
|
||||||
callbackClassName:@"DirectoryOutlineView" view:aOutlineView];
|
|
||||||
[[self view] registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyDirectoryOutline *)model
|
|
||||||
{
|
|
||||||
return (PyDirectoryOutline *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Delegate */
|
|
||||||
- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id < NSDraggingInfo >)info proposedItem:(id)item proposedChildIndex:(NSInteger)index
|
|
||||||
{
|
|
||||||
NSPasteboard *pboard;
|
|
||||||
NSDragOperation sourceDragMask;
|
|
||||||
sourceDragMask = [info draggingSourceOperationMask];
|
|
||||||
pboard = [info draggingPasteboard];
|
|
||||||
if ([[pboard types] containsObject:NSFilenamesPboardType]) {
|
|
||||||
if (sourceDragMask & NSDragOperationLink)
|
|
||||||
return NSDragOperationLink;
|
|
||||||
}
|
|
||||||
return NSDragOperationNone;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id < NSDraggingInfo >)info item:(id)item childIndex:(NSInteger)index
|
|
||||||
{
|
|
||||||
NSPasteboard *pboard;
|
|
||||||
NSDragOperation sourceDragMask;
|
|
||||||
sourceDragMask = [info draggingSourceOperationMask];
|
|
||||||
pboard = [info draggingPasteboard];
|
|
||||||
if ([[pboard types] containsObject:NSFilenamesPboardType]) {
|
|
||||||
NSArray *foldernames = [pboard propertyListForType:NSFilenamesPboardType];
|
|
||||||
if (!(sourceDragMask & NSDragOperationLink))
|
|
||||||
return NO;
|
|
||||||
for (NSString *foldername in foldernames) {
|
|
||||||
[[self model] addDirectory:foldername];
|
|
||||||
}
|
|
||||||
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:foldernames forKey:@"foldernames"];
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:DGAddedFoldersNotification
|
|
||||||
object:self userInfo:userInfo];
|
|
||||||
}
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)outlineView:(NSOutlineView *)aOutlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
|
|
||||||
{
|
|
||||||
if ([cell isKindOfClass:[NSTextFieldCell class]]) {
|
|
||||||
NSTextFieldCell *textCell = cell;
|
|
||||||
NSIndexPath *path = item;
|
|
||||||
BOOL selected = [path isEqualTo:[[self view] selectedPath]];
|
|
||||||
if (selected) {
|
|
||||||
[textCell setTextColor:[NSColor blackColor]];
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
NSInteger state = [self intProperty:@"state" valueAtPath:path];
|
|
||||||
if (state == 1) {
|
|
||||||
[textCell setTextColor:[NSColor blueColor]];
|
|
||||||
}
|
|
||||||
else if (state == 2) {
|
|
||||||
[textCell setTextColor:[NSColor redColor]];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[textCell setTextColor:[NSColor blackColor]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "HSOutlineView.h"
|
|
||||||
#import "HSRecentFiles.h"
|
|
||||||
#import "DirectoryOutline.h"
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
|
|
||||||
@class AppDelegateBase;
|
|
||||||
|
|
||||||
@interface DirectoryPanel : NSWindowController <NSOpenSavePanelDelegate>
|
|
||||||
{
|
|
||||||
IBOutlet NSPopUpButton *addButtonPopUp;
|
|
||||||
IBOutlet NSPopUpButton *loadRecentButtonPopUp;
|
|
||||||
IBOutlet HSOutlineView *outlineView;
|
|
||||||
IBOutlet NSButton *removeButton;
|
|
||||||
IBOutlet NSButton *loadResultsButton;
|
|
||||||
|
|
||||||
AppDelegateBase *_app;
|
|
||||||
PyDupeGuru *model;
|
|
||||||
HSRecentFiles *_recentDirectories;
|
|
||||||
DirectoryOutline *outline;
|
|
||||||
BOOL _alwaysShowPopUp;
|
|
||||||
}
|
|
||||||
- (id)initWithParentApp:(AppDelegateBase *)aParentApp;
|
|
||||||
|
|
||||||
- (void)fillPopUpMenu; // Virtual
|
|
||||||
- (void)adjustUIToLocalization;
|
|
||||||
|
|
||||||
- (IBAction)askForDirectory:(id)sender;
|
|
||||||
- (IBAction)popupAddDirectoryMenu:(id)sender;
|
|
||||||
- (IBAction)popupLoadRecentMenu:(id)sender;
|
|
||||||
- (IBAction)removeSelectedDirectory:(id)sender;
|
|
||||||
|
|
||||||
- (void)addDirectory:(NSString *)directory;
|
|
||||||
- (void)refreshRemoveButtonText;
|
|
||||||
@end
|
|
@ -1,192 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "DirectoryPanel.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
|
|
||||||
@implementation DirectoryPanel
|
|
||||||
- (id)initWithParentApp:(AppDelegateBase *)aParentApp
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"DirectoryPanel"];
|
|
||||||
[self window];
|
|
||||||
_app = aParentApp;
|
|
||||||
model = [_app model];
|
|
||||||
[[self window] setTitle:[model appName]];
|
|
||||||
_alwaysShowPopUp = NO;
|
|
||||||
[self fillPopUpMenu];
|
|
||||||
_recentDirectories = [[HSRecentFiles alloc] initWithName:@"recentDirectories" menu:[addButtonPopUp menu]];
|
|
||||||
[_recentDirectories setDelegate:self];
|
|
||||||
outline = [[DirectoryOutline alloc] initWithPyRef:[model directoryTree] outlineView:outlineView];
|
|
||||||
[self refreshRemoveButtonText];
|
|
||||||
[self adjustUIToLocalization];
|
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(directorySelectionChanged:)
|
|
||||||
name:NSOutlineViewSelectionDidChangeNotification object:outlineView];
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(outlineAddedFolders:)
|
|
||||||
name:DGAddedFoldersNotification object:outline];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[outline release];
|
|
||||||
[_recentDirectories release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Private */
|
|
||||||
|
|
||||||
- (void)fillPopUpMenu
|
|
||||||
{
|
|
||||||
NSMenu *m = [addButtonPopUp menu];
|
|
||||||
NSMenuItem *mi = [m addItemWithTitle:TR(@"Add New Folder...") action:@selector(askForDirectory:) keyEquivalent:@""];
|
|
||||||
[mi setTarget:self];
|
|
||||||
[m addItem:[NSMenuItem separatorItem]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)adjustUIToLocalization
|
|
||||||
{
|
|
||||||
NSString *lang = [[NSBundle preferredLocalizationsFromArray:[[NSBundle mainBundle] localizations]] objectAtIndex:0];
|
|
||||||
NSInteger loadResultsWidthDelta = 0;
|
|
||||||
if ([lang isEqual:@"ru"]) {
|
|
||||||
loadResultsWidthDelta = 50;
|
|
||||||
}
|
|
||||||
else if ([lang isEqual:@"uk"]) {
|
|
||||||
loadResultsWidthDelta = 70;
|
|
||||||
}
|
|
||||||
else if ([lang isEqual:@"hy"]) {
|
|
||||||
loadResultsWidthDelta = 30;
|
|
||||||
}
|
|
||||||
if (loadResultsWidthDelta) {
|
|
||||||
NSRect r = [loadResultsButton frame];
|
|
||||||
r.size.width += loadResultsWidthDelta;
|
|
||||||
r.origin.x -= loadResultsWidthDelta;
|
|
||||||
[loadResultsButton setFrame:r];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
|
|
||||||
- (IBAction)askForDirectory:(id)sender
|
|
||||||
{
|
|
||||||
NSOpenPanel *op = [NSOpenPanel openPanel];
|
|
||||||
[op setCanChooseFiles:YES];
|
|
||||||
[op setCanChooseDirectories:YES];
|
|
||||||
[op setAllowsMultipleSelection:YES];
|
|
||||||
[op setTitle:TR(@"Select a folder to add to the scanning list")];
|
|
||||||
[op setDelegate:self];
|
|
||||||
if ([op runModal] == NSOKButton) {
|
|
||||||
for (NSString *directory in [op filenames]) {
|
|
||||||
[self addDirectory:directory];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)popupAddDirectoryMenu:(id)sender
|
|
||||||
{
|
|
||||||
if ((!_alwaysShowPopUp) && ([[_recentDirectories filepaths] count] == 0)) {
|
|
||||||
[self askForDirectory:sender];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[addButtonPopUp selectItem:nil];
|
|
||||||
[[addButtonPopUp cell] performClickWithFrame:[sender frame] inView:[sender superview]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)popupLoadRecentMenu:(id)sender
|
|
||||||
{
|
|
||||||
if ([[[_app recentResults] filepaths] count] > 0) {
|
|
||||||
NSMenu *m = [loadRecentButtonPopUp menu];
|
|
||||||
while ([m numberOfItems] > 0) {
|
|
||||||
[m removeItemAtIndex:0];
|
|
||||||
}
|
|
||||||
NSMenuItem *mi = [m addItemWithTitle:TR(@"Load from file...") action:@selector(loadResults:) keyEquivalent:@""];
|
|
||||||
[mi setTarget:_app];
|
|
||||||
[m addItem:[NSMenuItem separatorItem]];
|
|
||||||
[[_app recentResults] fillMenu:m];
|
|
||||||
[loadRecentButtonPopUp selectItem:nil];
|
|
||||||
[[loadRecentButtonPopUp cell] performClickWithFrame:[sender frame] inView:[sender superview]];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[_app loadResults:nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)removeSelectedDirectory:(id)sender
|
|
||||||
{
|
|
||||||
[[self window] makeKeyAndOrderFront:nil];
|
|
||||||
[[outline model] removeSelectedDirectory];
|
|
||||||
[self refreshRemoveButtonText];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Public */
|
|
||||||
- (void)addDirectory:(NSString *)directory
|
|
||||||
{
|
|
||||||
NSInteger r = [model addDirectory:directory];
|
|
||||||
if (r) {
|
|
||||||
NSString *m = @"";
|
|
||||||
if (r == 1) {
|
|
||||||
m = TR(@"'%@' already is in the list.");
|
|
||||||
}
|
|
||||||
else if (r == 2) {
|
|
||||||
m = TR(@"'%@' does not exist.");
|
|
||||||
}
|
|
||||||
[Dialogs showMessage:[NSString stringWithFormat:m,directory]];
|
|
||||||
}
|
|
||||||
[_recentDirectories addFile:directory];
|
|
||||||
[[self window] makeKeyAndOrderFront:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)refreshRemoveButtonText
|
|
||||||
{
|
|
||||||
if ([outlineView selectedRow] < 0) {
|
|
||||||
[removeButton setEnabled:NO];
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
[removeButton setEnabled:YES];
|
|
||||||
NSIndexPath *path = [outline selectedIndexPath];
|
|
||||||
if (path != nil) {
|
|
||||||
NSInteger state = [outline intProperty:@"state" valueAtPath:path];
|
|
||||||
BOOL shouldDisplayArrow = ([path length] > 1) && (state == 2);
|
|
||||||
NSString *imgName = shouldDisplayArrow ? @"NSGoLeftTemplate" : @"NSRemoveTemplate";
|
|
||||||
[removeButton setImage:[NSImage imageNamed:imgName]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Delegate */
|
|
||||||
- (BOOL)panel:(id)sender shouldShowFilename:(NSString *)path
|
|
||||||
{
|
|
||||||
BOOL isdir;
|
|
||||||
[[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&isdir];
|
|
||||||
return isdir;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)recentFileClicked:(NSString *)path
|
|
||||||
{
|
|
||||||
[self addDirectory:path];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Notifications */
|
|
||||||
|
|
||||||
- (void)directorySelectionChanged:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
[self refreshRemoveButtonText];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)outlineAddedFolders:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
NSArray *foldernames = [[aNotification userInfo] objectForKey:@"foldernames"];
|
|
||||||
for (NSString *foldername in foldernames) {
|
|
||||||
[_recentDirectories addFile:foldername];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "PyIgnoreListDialog.h"
|
|
||||||
#import "HSTable.h"
|
|
||||||
|
|
||||||
@interface IgnoreListDialog : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSTableView *ignoreListTableView;
|
|
||||||
|
|
||||||
PyIgnoreListDialog *model;
|
|
||||||
HSTable *ignoreListTable;
|
|
||||||
}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef;
|
|
||||||
|
|
||||||
- (void)initializeColumns;
|
|
||||||
- (IBAction)removeSelected:(id)sender;
|
|
||||||
- (IBAction)clear:(id)sender;
|
|
||||||
@end
|
|
@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "IgnoreListDialog.h"
|
|
||||||
#import "HSPyUtil.h"
|
|
||||||
|
|
||||||
@implementation IgnoreListDialog
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"IgnoreListDialog"];
|
|
||||||
[self window]; //So the detailsTable is initialized.
|
|
||||||
model = [[PyIgnoreListDialog alloc] initWithModel:aPyRef];
|
|
||||||
[model bindCallback:createCallback(@"IgnoreListDialogView", self)];
|
|
||||||
ignoreListTable = [[HSTable alloc] initWithPyRef:[model ignoreListTable] tableView:ignoreListTableView];
|
|
||||||
[self initializeColumns];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[ignoreListTable release];
|
|
||||||
[model release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)initializeColumns
|
|
||||||
{
|
|
||||||
HSColumnDef defs[] = {
|
|
||||||
{@"path1", 240, 40, 0, NO, nil},
|
|
||||||
{@"path2", 240, 40, 0, NO, nil},
|
|
||||||
nil
|
|
||||||
};
|
|
||||||
[[ignoreListTable columns] initializeColumns:defs];
|
|
||||||
[[ignoreListTable columns] setColumnsAsReadOnly];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)removeSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model removeSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)clear:(id)sender
|
|
||||||
{
|
|
||||||
[model clear];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* model --> view */
|
|
||||||
- (void)show
|
|
||||||
{
|
|
||||||
[self showWindow:self];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "PyPrioritizeDialog.h"
|
|
||||||
#import "HSPopUpList.h"
|
|
||||||
#import "HSSelectableList.h"
|
|
||||||
#import "PrioritizeList.h"
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
|
|
||||||
@interface PrioritizeDialog : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSPopUpButton *categoryPopUpView;
|
|
||||||
IBOutlet NSTableView *criteriaTableView;
|
|
||||||
IBOutlet NSTableView *prioritizationTableView;
|
|
||||||
|
|
||||||
PyPrioritizeDialog *model;
|
|
||||||
HSPopUpList *categoryPopUp;
|
|
||||||
HSSelectableList *criteriaList;
|
|
||||||
PrioritizeList *prioritizationList;
|
|
||||||
}
|
|
||||||
- (id)initWithApp:(PyDupeGuru *)aApp;
|
|
||||||
- (PyPrioritizeDialog *)model;
|
|
||||||
|
|
||||||
- (IBAction)addSelected:(id)sender;
|
|
||||||
- (IBAction)removeSelected:(id)sender;
|
|
||||||
- (IBAction)ok:(id)sender;
|
|
||||||
- (IBAction)cancel:(id)sender;
|
|
||||||
@end;
|
|
@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "PrioritizeDialog.h"
|
|
||||||
#import "HSPyUtil.h"
|
|
||||||
|
|
||||||
@implementation PrioritizeDialog
|
|
||||||
- (id)initWithApp:(PyDupeGuru *)aApp
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"PrioritizeDialog"];
|
|
||||||
[self window];
|
|
||||||
model = [[PyPrioritizeDialog alloc] initWithApp:[aApp pyRef]];
|
|
||||||
categoryPopUp = [[HSPopUpList alloc] initWithPyRef:[[self model] categoryList] popupView:categoryPopUpView];
|
|
||||||
criteriaList = [[HSSelectableList alloc] initWithPyRef:[[self model] criteriaList] tableView:criteriaTableView];
|
|
||||||
prioritizationList = [[PrioritizeList alloc] initWithPyRef:[[self model] prioritizationList] tableView:prioritizationTableView];
|
|
||||||
[model bindCallback:createCallback(@"PrioritizeDialogView", self)];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[categoryPopUp release];
|
|
||||||
[criteriaList release];
|
|
||||||
[prioritizationList release];
|
|
||||||
[model release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyPrioritizeDialog *)model
|
|
||||||
{
|
|
||||||
return (PyPrioritizeDialog *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)addSelected:(id)sender
|
|
||||||
{
|
|
||||||
[[self model] addSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)removeSelected:(id)sender
|
|
||||||
{
|
|
||||||
[[self model] removeSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)ok:(id)sender
|
|
||||||
{
|
|
||||||
[NSApp stopModal];
|
|
||||||
[self close];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)cancel:(id)sender
|
|
||||||
{
|
|
||||||
[NSApp abortModal];
|
|
||||||
[self close];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,16 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "HSSelectableList.h"
|
|
||||||
#import "PyPrioritizeList.h"
|
|
||||||
|
|
||||||
@interface PrioritizeList : HSSelectableList {}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef tableView:(NSTableView *)aTableView;
|
|
||||||
- (PyPrioritizeList *)model;
|
|
||||||
@end
|
|
@ -1,58 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "PrioritizeList.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
|
|
||||||
@implementation PrioritizeList
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef tableView:(NSTableView *)aTableView
|
|
||||||
{
|
|
||||||
self = [super initWithPyRef:aPyRef wrapperClass:[PyPrioritizeList class]
|
|
||||||
callbackClassName:@"PrioritizeListView" view:aTableView];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyPrioritizeList *)model
|
|
||||||
{
|
|
||||||
return (PyPrioritizeList *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setView:(NSTableView *)aTableView
|
|
||||||
{
|
|
||||||
[super setView:aTableView];
|
|
||||||
[[self view] registerForDraggedTypes:[NSArray arrayWithObject:DGPrioritizeIndexPasteboardType]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)tableView:(NSTableView *)tv writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard*)pboard
|
|
||||||
{
|
|
||||||
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:rowIndexes];
|
|
||||||
[pboard declareTypes:[NSArray arrayWithObject:DGPrioritizeIndexPasteboardType] owner:self];
|
|
||||||
[pboard setData:data forType:DGPrioritizeIndexPasteboardType];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(NSInteger)row
|
|
||||||
proposedDropOperation:(NSTableViewDropOperation)op
|
|
||||||
{
|
|
||||||
if (op == NSTableViewDropAbove) {
|
|
||||||
return NSDragOperationMove;
|
|
||||||
}
|
|
||||||
return NSDragOperationNone;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id <NSDraggingInfo>)info
|
|
||||||
row:(NSInteger)row dropOperation:(NSTableViewDropOperation)operation
|
|
||||||
{
|
|
||||||
NSPasteboard* pboard = [info draggingPasteboard];
|
|
||||||
NSData* rowData = [pboard dataForType:DGPrioritizeIndexPasteboardType];
|
|
||||||
NSIndexSet* rowIndexes = [NSKeyedUnarchiver unarchiveObjectWithData:rowData];
|
|
||||||
[[self model] moveIndexes:[Utils indexSet2Array:rowIndexes] toIndex:row];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "PyProblemDialog.h"
|
|
||||||
#import "HSTable.h"
|
|
||||||
|
|
||||||
@interface ProblemDialog : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSTableView *problemTableView;
|
|
||||||
|
|
||||||
PyProblemDialog *model;
|
|
||||||
HSTable *problemTable;
|
|
||||||
}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef;
|
|
||||||
|
|
||||||
- (void)initializeColumns;
|
|
||||||
- (IBAction)revealSelected:(id)sender;
|
|
||||||
@end
|
|
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "ProblemDialog.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
|
|
||||||
@implementation ProblemDialog
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"ProblemDialog"];
|
|
||||||
[self window]; //So the detailsTable is initialized.
|
|
||||||
model = [[PyProblemDialog alloc] initWithModel:aPyRef];
|
|
||||||
problemTable = [[HSTable alloc] initWithPyRef:[model problemTable] tableView:problemTableView];
|
|
||||||
[self initializeColumns];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[problemTable release];
|
|
||||||
[model release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)initializeColumns
|
|
||||||
{
|
|
||||||
HSColumnDef defs[] = {
|
|
||||||
{@"path", 202, 40, 0, NO, nil},
|
|
||||||
{@"msg", 228, 40, 0, NO, nil},
|
|
||||||
nil
|
|
||||||
};
|
|
||||||
[[problemTable columns] initializeColumns:defs];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)revealSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model revealSelected];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import <Quartz/Quartz.h>
|
|
||||||
#import "HSTable.h"
|
|
||||||
#import "PyResultTable.h"
|
|
||||||
|
|
||||||
@interface ResultTable : HSTable <QLPreviewPanelDataSource, QLPreviewPanelDelegate>
|
|
||||||
{
|
|
||||||
NSSet *_deltaColumns;
|
|
||||||
}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef view:(NSTableView *)aTableView;
|
|
||||||
- (PyResultTable *)model;
|
|
||||||
- (BOOL)powerMarkerMode;
|
|
||||||
- (void)setPowerMarkerMode:(BOOL)aPowerMarkerMode;
|
|
||||||
- (BOOL)deltaValuesMode;
|
|
||||||
- (void)setDeltaValuesMode:(BOOL)aDeltaValuesMode;
|
|
||||||
@end;
|
|
@ -1,190 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "ResultTable.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
#import "HSQuicklook.h"
|
|
||||||
|
|
||||||
@interface HSTable (private)
|
|
||||||
- (void)setPySelection;
|
|
||||||
- (void)setViewSelection;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation ResultTable
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef view:(NSTableView *)aTableView
|
|
||||||
{
|
|
||||||
self = [super initWithPyRef:aPyRef wrapperClass:[PyResultTable class] callbackClassName:@"ResultTableView" view:aTableView];
|
|
||||||
_deltaColumns = [[NSSet setWithArray:[[self model] deltaColumns]] retain];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[_deltaColumns release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyResultTable *)model
|
|
||||||
{
|
|
||||||
return (PyResultTable *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Private */
|
|
||||||
- (void)updateQuicklookIfNeeded
|
|
||||||
{
|
|
||||||
if ([[QLPreviewPanel sharedPreviewPanel] dataSource] == self) {
|
|
||||||
[[QLPreviewPanel sharedPreviewPanel] reloadData];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setPySelection
|
|
||||||
{
|
|
||||||
[super setPySelection];
|
|
||||||
[self updateQuicklookIfNeeded];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setViewSelection
|
|
||||||
{
|
|
||||||
[super setViewSelection];
|
|
||||||
[self updateQuicklookIfNeeded];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Public */
|
|
||||||
- (BOOL)powerMarkerMode
|
|
||||||
{
|
|
||||||
return [[self model] powerMarkerMode];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setPowerMarkerMode:(BOOL)aPowerMarkerMode
|
|
||||||
{
|
|
||||||
[[self model] setPowerMarkerMode:aPowerMarkerMode];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)deltaValuesMode
|
|
||||||
{
|
|
||||||
return [[self model] deltaValuesMode];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setDeltaValuesMode:(BOOL)aDeltaValuesMode
|
|
||||||
{
|
|
||||||
[[self model] setDeltaValuesMode:aDeltaValuesMode];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Datasource */
|
|
||||||
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)column row:(NSInteger)row
|
|
||||||
{
|
|
||||||
NSString *identifier = [column identifier];
|
|
||||||
if ([identifier isEqual:@"marked"]) {
|
|
||||||
return [[self model] valueForColumn:@"marked" row:row];
|
|
||||||
}
|
|
||||||
return [[self model] valueForRow:row column:identifier];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)column row:(NSInteger)row
|
|
||||||
{
|
|
||||||
NSString *identifier = [column identifier];
|
|
||||||
if ([identifier isEqual:@"marked"]) {
|
|
||||||
[[self model] setValue:object forColumn:identifier row:row];
|
|
||||||
}
|
|
||||||
else if ([identifier isEqual:@"name"]) {
|
|
||||||
NSString *oldName = [[self model] valueForRow:row column:identifier];
|
|
||||||
NSString *newName = object;
|
|
||||||
if (![newName isEqual:oldName]) {
|
|
||||||
BOOL renamed = [[self model] renameSelected:newName];
|
|
||||||
if (!renamed) {
|
|
||||||
[Dialogs showMessage:[NSString stringWithFormat:TR(@"The name '%@' already exists."), newName]];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[[self view] setNeedsDisplay:YES];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Delegate */
|
|
||||||
- (void)tableView:(NSTableView *)aTableView didClickTableColumn:(NSTableColumn *)tableColumn
|
|
||||||
{
|
|
||||||
if ([[[self view] sortDescriptors] count] < 1)
|
|
||||||
return;
|
|
||||||
NSSortDescriptor *sd = [[[self view] sortDescriptors] objectAtIndex:0];
|
|
||||||
[[self model] sortBy:[sd key] ascending:[sd ascending]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)column row:(NSInteger)row
|
|
||||||
{
|
|
||||||
BOOL isSelected = [[self view] isRowSelected:row];
|
|
||||||
BOOL isMarkable = n2b([[self model] valueForColumn:@"markable" row:row]);
|
|
||||||
if ([[column identifier] isEqual:@"marked"]) {
|
|
||||||
[cell setEnabled:isMarkable];
|
|
||||||
// Low-tech solution, for indentation, but it works...
|
|
||||||
NSCellImagePosition pos = isMarkable ? NSImageRight : NSImageLeft;
|
|
||||||
[cell setImagePosition:pos];
|
|
||||||
}
|
|
||||||
if ([cell isKindOfClass:[NSTextFieldCell class]]) {
|
|
||||||
NSColor *color = [NSColor textColor];
|
|
||||||
if (isSelected) {
|
|
||||||
color = [NSColor selectedTextColor];
|
|
||||||
}
|
|
||||||
else if (isMarkable) {
|
|
||||||
if ([self deltaValuesMode]) {
|
|
||||||
if ([_deltaColumns containsObject:[column identifier]]) {
|
|
||||||
color = [NSColor orangeColor];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
color = [NSColor blueColor];
|
|
||||||
}
|
|
||||||
[(NSTextFieldCell *)cell setTextColor:color];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)tableViewHadDeletePressed:(NSTableView *)tableView
|
|
||||||
{
|
|
||||||
[[self model] removeSelected];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)tableViewHadSpacePressed:(NSTableView *)tableView
|
|
||||||
{
|
|
||||||
[[self model] markSelected];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Quicklook */
|
|
||||||
- (NSInteger)numberOfPreviewItemsInPreviewPanel:(QLPreviewPanel *)panel
|
|
||||||
{
|
|
||||||
return [[[self model] selectedRows] count];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id <QLPreviewItem>)previewPanel:(QLPreviewPanel *)panel previewItemAtIndex:(NSInteger)index
|
|
||||||
{
|
|
||||||
NSArray *selectedRows = [[self model] selectedRows];
|
|
||||||
NSInteger absIndex = n2i([selectedRows objectAtIndex:index]);
|
|
||||||
NSString *path = [[self model] pathAtIndex:absIndex];
|
|
||||||
return [[HSQLPreviewItem alloc] initWithUrl:[NSURL fileURLWithPath:path] title:path];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)previewPanel:(QLPreviewPanel *)panel handleEvent:(NSEvent *)event
|
|
||||||
{
|
|
||||||
// redirect all key down events to the table view
|
|
||||||
if ([event type] == NSKeyDown) {
|
|
||||||
[[self view] keyDown:event];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Python --> Cocoa */
|
|
||||||
- (void)invalidateMarkings
|
|
||||||
{
|
|
||||||
[[self view] setNeedsDisplay:YES];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,80 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import <Quartz/Quartz.h>
|
|
||||||
#import "StatsLabel.h"
|
|
||||||
#import "ResultTable.h"
|
|
||||||
#import "ProblemDialog.h"
|
|
||||||
#import "DeletionOptions.h"
|
|
||||||
#import "HSTableView.h"
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
|
|
||||||
@class AppDelegateBase;
|
|
||||||
|
|
||||||
@interface ResultWindowBase : NSWindowController
|
|
||||||
{
|
|
||||||
@protected
|
|
||||||
IBOutlet NSSegmentedControl *optionsSwitch;
|
|
||||||
IBOutlet NSToolbarItem *optionsToolbarItem;
|
|
||||||
IBOutlet HSTableView *matches;
|
|
||||||
IBOutlet NSTextField *stats;
|
|
||||||
IBOutlet NSSearchField *filterField;
|
|
||||||
|
|
||||||
AppDelegateBase *app;
|
|
||||||
PyDupeGuru *model;
|
|
||||||
NSMenu *columnsMenu;
|
|
||||||
ResultTable *table;
|
|
||||||
StatsLabel *statsLabel;
|
|
||||||
ProblemDialog *problemDialog;
|
|
||||||
DeletionOptions *deletionOptions;
|
|
||||||
QLPreviewPanel* previewPanel;
|
|
||||||
}
|
|
||||||
- (id)initWithParentApp:(AppDelegateBase *)app;
|
|
||||||
|
|
||||||
/* Virtual */
|
|
||||||
- (void)initResultColumns;
|
|
||||||
- (void)setScanOptions;
|
|
||||||
|
|
||||||
/* Helpers */
|
|
||||||
- (void)fillColumnsMenu;
|
|
||||||
- (void)updateOptionSegments;
|
|
||||||
- (void)showProblemDialog;
|
|
||||||
- (void)adjustUIToLocalization;
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
- (IBAction)changeOptions:(id)sender;
|
|
||||||
- (IBAction)copyMarked:(id)sender;
|
|
||||||
- (IBAction)trashMarked:(id)sender;
|
|
||||||
- (IBAction)exportToXHTML:(id)sender;
|
|
||||||
- (IBAction)filter:(id)sender;
|
|
||||||
- (IBAction)focusOnFilterField:(id)sender;
|
|
||||||
- (IBAction)ignoreSelected:(id)sender;
|
|
||||||
- (IBAction)invokeCustomCommand:(id)sender;
|
|
||||||
- (IBAction)markAll:(id)sender;
|
|
||||||
- (IBAction)markInvert:(id)sender;
|
|
||||||
- (IBAction)markNone:(id)sender;
|
|
||||||
- (IBAction)markSelected:(id)sender;
|
|
||||||
- (IBAction)moveMarked:(id)sender;
|
|
||||||
- (IBAction)openClicked:(id)sender;
|
|
||||||
- (IBAction)openSelected:(id)sender;
|
|
||||||
- (IBAction)removeMarked:(id)sender;
|
|
||||||
- (IBAction)removeSelected:(id)sender;
|
|
||||||
- (IBAction)renameSelected:(id)sender;
|
|
||||||
- (IBAction)reprioritizeResults:(id)sender;
|
|
||||||
- (IBAction)resetColumnsToDefault:(id)sender;
|
|
||||||
- (IBAction)revealSelected:(id)sender;
|
|
||||||
- (IBAction)saveResults:(id)sender;
|
|
||||||
- (IBAction)startDuplicateScan:(id)sender;
|
|
||||||
- (IBAction)switchSelected:(id)sender;
|
|
||||||
- (IBAction)toggleColumn:(id)sender;
|
|
||||||
- (IBAction)toggleDelta:(id)sender;
|
|
||||||
- (IBAction)toggleDetailsPanel:(id)sender;
|
|
||||||
- (IBAction)togglePowerMarker:(id)sender;
|
|
||||||
- (IBAction)toggleQuicklookPanel:(id)sender;
|
|
||||||
@end
|
|
@ -1,363 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "ProgressController.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
#import "PrioritizeDialog.h"
|
|
||||||
|
|
||||||
@implementation ResultWindowBase
|
|
||||||
- (id)initWithParentApp:(AppDelegateBase *)aApp;
|
|
||||||
{
|
|
||||||
self = [super initWithWindowNibName:@"ResultWindow"];
|
|
||||||
app = aApp;
|
|
||||||
model = [app model];
|
|
||||||
[[self window] setTitle:fmt(@"%@ Results", [model appName])];
|
|
||||||
columnsMenu = [app columnsMenu];
|
|
||||||
/* Put a cute iTunes-like bottom bar */
|
|
||||||
[[self window] setContentBorderThickness:28 forEdge:NSMinYEdge];
|
|
||||||
table = [[ResultTable alloc] initWithPyRef:[model resultTable] view:matches];
|
|
||||||
statsLabel = [[StatsLabel alloc] initWithPyRef:[model statsLabel] view:stats];
|
|
||||||
problemDialog = [[ProblemDialog alloc] initWithPyRef:[model problemDialog]];
|
|
||||||
deletionOptions = [[DeletionOptions alloc] initWithPyRef:[model deletionOptions]];
|
|
||||||
[self initResultColumns];
|
|
||||||
[self fillColumnsMenu];
|
|
||||||
[matches setTarget:self];
|
|
||||||
[matches setDoubleAction:@selector(openClicked:)];
|
|
||||||
[self adjustUIToLocalization];
|
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jobStarted:) name:JobStarted object:nil];
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jobInProgress:) name:JobInProgress object:nil];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[table release];
|
|
||||||
[statsLabel release];
|
|
||||||
[problemDialog release];
|
|
||||||
[super dealloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Virtual */
|
|
||||||
- (void)initResultColumns
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setScanOptions
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Helpers */
|
|
||||||
- (void)fillColumnsMenu
|
|
||||||
{
|
|
||||||
NSArray *menuItems = [[[table columns] model] menuItems];
|
|
||||||
for (NSInteger i=0; i < [menuItems count]; i++) {
|
|
||||||
NSArray *pair = [menuItems objectAtIndex:i];
|
|
||||||
NSString *display = [pair objectAtIndex:0];
|
|
||||||
BOOL marked = n2b([pair objectAtIndex:1]);
|
|
||||||
NSMenuItem *mi = [columnsMenu addItemWithTitle:display action:@selector(toggleColumn:) keyEquivalent:@""];
|
|
||||||
[mi setTarget:self];
|
|
||||||
[mi setState:marked ? NSOnState : NSOffState];
|
|
||||||
[mi setTag:i];
|
|
||||||
}
|
|
||||||
[columnsMenu addItem:[NSMenuItem separatorItem]];
|
|
||||||
NSMenuItem *mi = [columnsMenu addItemWithTitle:TR(@"Reset to Default")
|
|
||||||
action:@selector(resetColumnsToDefault:) keyEquivalent:@""];
|
|
||||||
[mi setTarget:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)updateOptionSegments
|
|
||||||
{
|
|
||||||
[optionsSwitch setSelected:[[app detailsPanel] isVisible] forSegment:0];
|
|
||||||
[optionsSwitch setSelected:[table powerMarkerMode] forSegment:1];
|
|
||||||
[optionsSwitch setSelected:[table deltaValuesMode] forSegment:2];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)showProblemDialog
|
|
||||||
{
|
|
||||||
[problemDialog showWindow:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)adjustUIToLocalization
|
|
||||||
{
|
|
||||||
NSString *lang = [[NSBundle preferredLocalizationsFromArray:[[NSBundle mainBundle] localizations]] objectAtIndex:0];
|
|
||||||
NSInteger seg1delta = 0;
|
|
||||||
NSInteger seg2delta = 0;
|
|
||||||
if ([lang isEqual:@"ru"]) {
|
|
||||||
seg2delta = 20;
|
|
||||||
}
|
|
||||||
else if ([lang isEqual:@"uk"]) {
|
|
||||||
seg2delta = 20;
|
|
||||||
}
|
|
||||||
else if ([lang isEqual:@"hy"]) {
|
|
||||||
seg1delta = 20;
|
|
||||||
}
|
|
||||||
if (seg1delta || seg2delta) {
|
|
||||||
[optionsSwitch setWidth:[optionsSwitch widthForSegment:0]+seg1delta forSegment:0];
|
|
||||||
[optionsSwitch setWidth:[optionsSwitch widthForSegment:1]+seg2delta forSegment:1];
|
|
||||||
NSSize s = [optionsToolbarItem maxSize];
|
|
||||||
s.width += seg1delta + seg2delta;
|
|
||||||
[optionsToolbarItem setMaxSize:s];
|
|
||||||
[optionsToolbarItem setMinSize:s];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
- (IBAction)changeOptions:(id)sender
|
|
||||||
{
|
|
||||||
NSInteger seg = [optionsSwitch selectedSegment];
|
|
||||||
if (seg == 0) {
|
|
||||||
[self toggleDetailsPanel:sender];
|
|
||||||
}
|
|
||||||
else if (seg == 1) {
|
|
||||||
[self togglePowerMarker:sender];
|
|
||||||
}
|
|
||||||
else if (seg == 2) {
|
|
||||||
[self toggleDelta:sender];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)copyMarked:(id)sender
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
[model setRemoveEmptyFolders:n2b([ud objectForKey:@"removeEmptyFolders"])];
|
|
||||||
[model setCopyMoveDestType:n2i([ud objectForKey:@"recreatePathType"])];
|
|
||||||
[model copyMarked];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)trashMarked:(id)sender
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
[model setRemoveEmptyFolders:n2b([ud objectForKey:@"removeEmptyFolders"])];
|
|
||||||
[model deleteMarked];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)exportToXHTML:(id)sender
|
|
||||||
{
|
|
||||||
NSString *exported = [model exportToXHTML];
|
|
||||||
[[NSWorkspace sharedWorkspace] openFile:exported];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)filter:(id)sender
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
[model setEscapeFilterRegexp:!n2b([ud objectForKey:@"useRegexpFilter"])];
|
|
||||||
[model applyFilter:[filterField stringValue]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)focusOnFilterField:(id)sender
|
|
||||||
{
|
|
||||||
[[self window] makeFirstResponder:filterField];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)ignoreSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model addSelectedToIgnoreList];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)invokeCustomCommand:(id)sender
|
|
||||||
{
|
|
||||||
[model invokeCustomCommand];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)markAll:(id)sender
|
|
||||||
{
|
|
||||||
[model markAll];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)markInvert:(id)sender
|
|
||||||
{
|
|
||||||
[model markInvert];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)markNone:(id)sender
|
|
||||||
{
|
|
||||||
[model markNone];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)markSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model toggleSelectedMark];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)moveMarked:(id)sender
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
[model setRemoveEmptyFolders:n2b([ud objectForKey:@"removeEmptyFolders"])];
|
|
||||||
[model setCopyMoveDestType:n2i([ud objectForKey:@"recreatePathType"])];
|
|
||||||
[model moveMarked];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)openClicked:(id)sender
|
|
||||||
{
|
|
||||||
if ([matches clickedRow] < 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
[matches selectRowIndexes:[NSIndexSet indexSetWithIndex:[matches clickedRow]] byExtendingSelection:NO];
|
|
||||||
[model openSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)openSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model openSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)removeMarked:(id)sender
|
|
||||||
{
|
|
||||||
[model removeMarked];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)removeSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model removeSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)renameSelected:(id)sender
|
|
||||||
{
|
|
||||||
NSInteger col = [matches columnWithIdentifier:@"0"];
|
|
||||||
NSInteger row = [matches selectedRow];
|
|
||||||
[matches editColumn:col row:row withEvent:[NSApp currentEvent] select:YES];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)reprioritizeResults:(id)sender
|
|
||||||
{
|
|
||||||
PrioritizeDialog *dlg = [[PrioritizeDialog alloc] initWithApp:model];
|
|
||||||
NSInteger result = [NSApp runModalForWindow:[dlg window]];
|
|
||||||
if (result == NSRunStoppedResponse) {
|
|
||||||
[[dlg model] performReprioritization];
|
|
||||||
}
|
|
||||||
[dlg release];
|
|
||||||
[[self window] makeKeyAndOrderFront:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)resetColumnsToDefault:(id)sender
|
|
||||||
{
|
|
||||||
[[[table columns] model] resetToDefaults];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)revealSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model revealSelected];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)saveResults:(id)sender
|
|
||||||
{
|
|
||||||
NSSavePanel *sp = [NSSavePanel savePanel];
|
|
||||||
[sp setCanCreateDirectories:YES];
|
|
||||||
[sp setAllowedFileTypes:[NSArray arrayWithObject:@"dupeguru"]];
|
|
||||||
[sp setTitle:TR(@"Select a file to save your results to")];
|
|
||||||
if ([sp runModal] == NSOKButton) {
|
|
||||||
[model saveResultsAs:[sp filename]];
|
|
||||||
[[app recentResults] addFile:[sp filename]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)startDuplicateScan:(id)sender
|
|
||||||
{
|
|
||||||
if ([model resultsAreModified]) {
|
|
||||||
if ([Dialogs askYesNo:TR(@"You have unsaved results, do you really want to continue?")] == NSAlertSecondButtonReturn) // NO
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
[self setScanOptions];
|
|
||||||
[model doScan];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)switchSelected:(id)sender
|
|
||||||
{
|
|
||||||
[model makeSelectedReference];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)toggleColumn:(id)sender
|
|
||||||
{
|
|
||||||
NSMenuItem *mi = sender;
|
|
||||||
BOOL checked = [[[table columns] model] toggleMenuItem:[mi tag]];
|
|
||||||
[mi setState:checked ? NSOnState : NSOffState];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)toggleDetailsPanel:(id)sender
|
|
||||||
{
|
|
||||||
[[app detailsPanel] toggleVisibility];
|
|
||||||
[self updateOptionSegments];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)toggleDelta:(id)sender
|
|
||||||
{
|
|
||||||
[table setDeltaValuesMode:![table deltaValuesMode]];
|
|
||||||
[self updateOptionSegments];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)togglePowerMarker:(id)sender
|
|
||||||
{
|
|
||||||
[table setPowerMarkerMode:![table powerMarkerMode]];
|
|
||||||
[self updateOptionSegments];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)toggleQuicklookPanel:(id)sender
|
|
||||||
{
|
|
||||||
if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible]) {
|
|
||||||
[[QLPreviewPanel sharedPreviewPanel] orderOut:nil];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
[[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Quicklook */
|
|
||||||
- (BOOL)acceptsPreviewPanelControl:(QLPreviewPanel *)panel;
|
|
||||||
{
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)beginPreviewPanelControl:(QLPreviewPanel *)panel
|
|
||||||
{
|
|
||||||
// This document is now responsible of the preview panel
|
|
||||||
// It is allowed to set the delegate, data source and refresh panel.
|
|
||||||
previewPanel = [panel retain];
|
|
||||||
panel.delegate = table;
|
|
||||||
panel.dataSource = table;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)endPreviewPanelControl:(QLPreviewPanel *)panel
|
|
||||||
{
|
|
||||||
// This document loses its responsisibility on the preview panel
|
|
||||||
// Until the next call to -beginPreviewPanelControl: it must not
|
|
||||||
// change the panel's delegate, data source or refresh it.
|
|
||||||
[previewPanel release];
|
|
||||||
previewPanel = nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)jobInProgress:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
[Dialogs showMessage:TR(@"A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.")];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)jobStarted:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
[[self window] makeKeyAndOrderFront:nil];
|
|
||||||
NSDictionary *ui = [aNotification userInfo];
|
|
||||||
NSString *desc = [ui valueForKey:@"desc"];
|
|
||||||
[[ProgressController mainProgressController] setJobDesc:desc];
|
|
||||||
NSString *jobid = [ui valueForKey:@"jobid"];
|
|
||||||
[[ProgressController mainProgressController] setJobId:jobid];
|
|
||||||
[[ProgressController mainProgressController] showSheetForParent:[self window]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)validateToolbarItem:(NSToolbarItem *)theItem
|
|
||||||
{
|
|
||||||
return ![[ProgressController mainProgressController] isShown];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)validateMenuItem:(NSMenuItem *)item
|
|
||||||
{
|
|
||||||
return ![[ProgressController mainProgressController] isShown];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,17 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "HSGUIController.h"
|
|
||||||
#import "PyStatsLabel.h"
|
|
||||||
|
|
||||||
@interface StatsLabel : HSGUIController {}
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef view:(NSTextField *)aLabelView;
|
|
||||||
- (PyStatsLabel *)model;
|
|
||||||
- (NSTextField *)labelView;
|
|
||||||
@end
|
|
@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "StatsLabel.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
|
|
||||||
@implementation StatsLabel
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef view:(NSTextField *)aLabelView
|
|
||||||
{
|
|
||||||
return [super initWithPyRef:aPyRef wrapperClass:[PyStatsLabel class]
|
|
||||||
callbackClassName:@"StatsLabelView" view:aLabelView];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (PyStatsLabel *)model
|
|
||||||
{
|
|
||||||
return (PyStatsLabel *)model;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSTextField *)labelView
|
|
||||||
{
|
|
||||||
return (NSTextField *)view;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Python --> Cocoa */
|
|
||||||
- (void)refresh
|
|
||||||
{
|
|
||||||
[[self labelView] setStringValue:[[self model] display]];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,20 +0,0 @@
|
|||||||
-----BEGIN PUBLIC KEY-----
|
|
||||||
MIIDOjCCAi0GByqGSM44BAEwggIgAoIBAQDSurIL+HKbw+jsppG6tp3+WOcA4W71
|
|
||||||
nhwR/DD2Se076AtCXJcssAhuCDUm+AVkQ3l34D++aYWtLR575rCrwU4lZXfQe+b9
|
|
||||||
plHK02oOuqAY8lO5y02xoHEh7XeGunZ0u8wOVZw8MI999vIJ8rtCdvIF3r26wkjx
|
|
||||||
9sieSxVpzJHDV5JHVdK3ObkXp/ts99dOD5B3CWGS8UiroMgS0FmRl7uPuADRRn2G
|
|
||||||
srHTBYMwJvq8HFzQmDxcLldGQMAKvRKchtH+nH6ci1unSnpDUyrsCd+7qv1cSTse
|
|
||||||
qc4OgXBDQ94MfVEh6Bs0S9stYfJf8cp6iV18J0sqMb9rbP4qC56iBsXfAhUAj6tx
|
|
||||||
gwima7VaNI4YiC69jpLod3MCggEAYx+/mbU8P/xGooV9MgA3nI2v2vVNkwZVFcPa
|
|
||||||
ROLQHg+R7bAftF3+1M9AnSP2O+PnXL65DwyTOab/Z/zM/vof3LLCGLYCmzPL+xvB
|
|
||||||
6PxlqO374kFsKHEaaw66nnFWzPSdks/il0rauAiEbO8Gn/a8F2HFdA/OCCzq83l6
|
|
||||||
cOhya7kGXZxdjeIfpfiNjDqZXi+8VRNDcDXx5u/T4vpkliQ+4O8ZXjwE4z2dPHfu
|
|
||||||
Bw/N7DUalkzhZygYqcgx3tUxu3x/Pso+inmIBbk/As0uZv2nEll2CkEI6CSJIpfn
|
|
||||||
pLKNQb4E4G7h+u+8kfHcwQ59RU1uGh0PU5uM+DOPg6HsC41RwgOCAQUAAoIBABLY
|
|
||||||
T8gN8KdxWheESorvgksdG+Fizhkafpac08MCwJFF24v5a8AvZbhcCMLhChrloKcQ
|
|
||||||
19qHshRIuWbSma/OqCmQKH752PTOKxRKsmqAfO0Rej2aDJrd0s7YBMY72DqeSYPP
|
|
||||||
peLlwv0gkgRW7/EbDvBI18iTbrQLZtdqs9Xajc3dyIG5wrMtAf/Gta2oWChHlBLZ
|
|
||||||
S45++Y9ou+LtW7dMc7c+aTxbzeLG36S57kAenRzjfP8zOi3P+Cc+5b9+SZgqfFrz
|
|
||||||
/ch/HjB2zYAKq9AZSmgp9qIlOIuXnctJUD9hHivuEXFDr6xi1cxj7Q8WnX4+C58/
|
|
||||||
QyGS4lebbLQ35x6fTQ8=
|
|
||||||
-----END PUBLIC KEY-----
|
|
@ -1,21 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "Deletion Options"; ObjectID = "1"; */
|
|
||||||
"1.title" = "Deletion Options";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Hardlink deleted files"; ObjectID = "4"; */
|
|
||||||
"4.title" = "Hardlink deleted files";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "After having deleted a duplicate, place a hardlink targeting the reference file to replace the deleted file."; ObjectID = "8"; */
|
|
||||||
"8.title" = "After having deleted a duplicate, place a hardlink targeting the reference file to replace the deleted file.";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Directly delete files"; ObjectID = "36"; */
|
|
||||||
"36.title" = "Directly delete files";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Instead of sending files to trash, delete them directly. This option is usually used as a workaround when the normal deletion method doesn't work."; ObjectID = "38"; */
|
|
||||||
"38.title" = "Instead of sending files to trash, delete them directly. This option is usually used as a workaround when the normal deletion method doesn't work.";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Proceed"; ObjectID = "40"; */
|
|
||||||
"40.title" = "Proceed";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "42"; */
|
|
||||||
"42.title" = "Cancel";
|
|
@ -1,556 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
|
|
||||||
<data>
|
|
||||||
<int key="IBDocument.SystemTarget">1060</int>
|
|
||||||
<string key="IBDocument.SystemVersion">11E53</string>
|
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
|
|
||||||
<string key="IBDocument.AppKitVersion">1138.47</string>
|
|
||||||
<string key="IBDocument.HIToolboxVersion">569.00</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="NS.object.0">2182</string>
|
|
||||||
</object>
|
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
|
||||||
<string>NSTextField</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSTextFieldCell</string>
|
|
||||||
<string>NSButtonCell</string>
|
|
||||||
<string>NSButton</string>
|
|
||||||
<string>NSCustomObject</string>
|
|
||||||
</array>
|
|
||||||
<array key="IBDocument.PluginDependencies">
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</array>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
|
||||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
|
||||||
<integer value="1" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
|
||||||
<object class="NSCustomObject" id="1001">
|
|
||||||
<string key="NSClassName">DeletionOptions</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1003">
|
|
||||||
<string key="NSClassName">FirstResponder</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1004">
|
|
||||||
<string key="NSClassName">NSApplication</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSWindowTemplate" id="1005">
|
|
||||||
<int key="NSWindowStyleMask">3</int>
|
|
||||||
<int key="NSWindowBacking">2</int>
|
|
||||||
<string key="NSWindowRect">{{196, 240}, {449, 215}}</string>
|
|
||||||
<int key="NSWTFlags">1618477056</int>
|
|
||||||
<string key="NSWindowTitle">Deletion Options</string>
|
|
||||||
<string key="NSWindowClass">NSWindow</string>
|
|
||||||
<nil key="NSViewClass"/>
|
|
||||||
<nil key="NSUserInterfaceItemIdentifier"/>
|
|
||||||
<object class="NSView" key="NSWindowView" id="1006">
|
|
||||||
<reference key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSButton" id="22939991">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{18, 154}, {413, 18}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="258896148"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="199073808">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">0</int>
|
|
||||||
<string key="NSContents">Hardlink deleted files</string>
|
|
||||||
<object class="NSFont" key="NSSupport" id="672375986">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">13</double>
|
|
||||||
<int key="NSfFlags">1044</int>
|
|
||||||
</object>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="22939991"/>
|
|
||||||
<int key="NSButtonFlags">1211912703</int>
|
|
||||||
<int key="NSButtonFlags2">2</int>
|
|
||||||
<object class="NSCustomResource" key="NSNormalImage" id="28662763">
|
|
||||||
<string key="NSClassName">NSImage</string>
|
|
||||||
<string key="NSResourceName">NSSwitch</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSButtonImageSource" key="NSAlternateImage" id="1065109393">
|
|
||||||
<string key="NSImageName">NSSwitch</string>
|
|
||||||
</object>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="1003638083">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{18, 96}, {413, 18}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="316971589"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="791836143">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">0</int>
|
|
||||||
<string key="NSContents">Directly delete files</string>
|
|
||||||
<reference key="NSSupport" ref="672375986"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="1003638083"/>
|
|
||||||
<int key="NSButtonFlags">1211912703</int>
|
|
||||||
<int key="NSButtonFlags2">2</int>
|
|
||||||
<reference key="NSNormalImage" ref="28662763"/>
|
|
||||||
<reference key="NSAlternateImage" ref="1065109393"/>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextField" id="258896148">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{38, 120}, {394, 28}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="1003638083"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<string key="NSAntiCompressionPriority">{250, 750}</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTextFieldCell" key="NSCell" id="939395720">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">272629760</int>
|
|
||||||
<string key="NSContents">After having deleted a duplicate, place a hardlink targeting the reference file to replace the deleted file.</string>
|
|
||||||
<object class="NSFont" key="NSSupport" id="1067329392">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">11</double>
|
|
||||||
<int key="NSfFlags">16</int>
|
|
||||||
</object>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="258896148"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor" id="360163505">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor" id="819030839">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlTextColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MAA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextField" id="316971589">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{38, 48}, {394, 42}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="375232713"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<string key="NSAntiCompressionPriority">{250, 750}</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTextFieldCell" key="NSCell" id="404549205">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">272629760</int>
|
|
||||||
<string key="NSContents">Instead of sending files to trash, delete them directly. This option is usually used as a workaround when the normal deletion method doesn't work.</string>
|
|
||||||
<reference key="NSSupport" ref="1067329392"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="316971589"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="360163505"/>
|
|
||||||
<reference key="NSTextColor" ref="819030839"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="630940386">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{331, 12}, {104, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="551779024">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Proceed</string>
|
|
||||||
<reference key="NSSupport" ref="672375986"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="630940386"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">DQ</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="375232713">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{227, 12}, {104, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="630940386"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="311692270">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Cancel</string>
|
|
||||||
<reference key="NSSupport" ref="672375986"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:9</string>
|
|
||||||
<reference key="NSControlView" ref="375232713"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">Gw</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextField" id="275527426">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{17, 178}, {415, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="22939991"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1505</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTextFieldCell" key="NSCell" id="184485433">
|
|
||||||
<int key="NSCellFlags">68288064</int>
|
|
||||||
<int key="NSCellFlags2">272630784</int>
|
|
||||||
<string key="NSContents"/>
|
|
||||||
<reference key="NSSupport" ref="672375986"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:1505</string>
|
|
||||||
<reference key="NSControlView" ref="275527426"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="360163505"/>
|
|
||||||
<reference key="NSTextColor" ref="819030839"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{449, 215}</string>
|
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="275527426"/>
|
|
||||||
</object>
|
|
||||||
<string key="NSScreenRect">{{0, 0}, {1920, 1058}}</string>
|
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
|
||||||
<bool key="NSWindowIsRestorable">NO</bool>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">messageTextField</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="275527426"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">45</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">hardlinkButton</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="22939991"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">46</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">directButton</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="1003638083"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">47</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">updateOptions:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="22939991"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">48</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">updateOptions:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="1003638083"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">49</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">cancel:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="375232713"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">50</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">proceed:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="630940386"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">51</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">window</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="1005"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">52</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
|
||||||
<array key="orderedObjects">
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">0</int>
|
|
||||||
<array key="object" id="0"/>
|
|
||||||
<reference key="children" ref="1000"/>
|
|
||||||
<nil key="parent"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-2</int>
|
|
||||||
<reference key="object" ref="1001"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">File's Owner</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-1</int>
|
|
||||||
<reference key="object" ref="1003"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">First Responder</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-3</int>
|
|
||||||
<reference key="object" ref="1004"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">Application</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">1</int>
|
|
||||||
<reference key="object" ref="1005"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="1006"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">2</int>
|
|
||||||
<reference key="object" ref="1006"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="275527426"/>
|
|
||||||
<reference ref="22939991"/>
|
|
||||||
<reference ref="1003638083"/>
|
|
||||||
<reference ref="258896148"/>
|
|
||||||
<reference ref="316971589"/>
|
|
||||||
<reference ref="630940386"/>
|
|
||||||
<reference ref="375232713"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1005"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">3</int>
|
|
||||||
<reference key="object" ref="22939991"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="199073808"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">4</int>
|
|
||||||
<reference key="object" ref="199073808"/>
|
|
||||||
<reference key="parent" ref="22939991"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">7</int>
|
|
||||||
<reference key="object" ref="258896148"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="939395720"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">8</int>
|
|
||||||
<reference key="object" ref="939395720"/>
|
|
||||||
<reference key="parent" ref="258896148"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">35</int>
|
|
||||||
<reference key="object" ref="1003638083"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="791836143"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">36</int>
|
|
||||||
<reference key="object" ref="791836143"/>
|
|
||||||
<reference key="parent" ref="1003638083"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">37</int>
|
|
||||||
<reference key="object" ref="316971589"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="404549205"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">38</int>
|
|
||||||
<reference key="object" ref="404549205"/>
|
|
||||||
<reference key="parent" ref="316971589"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">39</int>
|
|
||||||
<reference key="object" ref="630940386"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="551779024"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">40</int>
|
|
||||||
<reference key="object" ref="551779024"/>
|
|
||||||
<reference key="parent" ref="630940386"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">41</int>
|
|
||||||
<reference key="object" ref="375232713"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="311692270"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">42</int>
|
|
||||||
<reference key="object" ref="311692270"/>
|
|
||||||
<reference key="parent" ref="375232713"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">43</int>
|
|
||||||
<reference key="object" ref="275527426"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="184485433"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">44</int>
|
|
||||||
<reference key="object" ref="184485433"/>
|
|
||||||
<reference key="parent" ref="275527426"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
|
||||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="1.IBNSWindowAutoPositionCentersHorizontal"/>
|
|
||||||
<boolean value="YES" key="1.IBNSWindowAutoPositionCentersVertical"/>
|
|
||||||
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
|
|
||||||
<boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
|
|
||||||
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="35.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="36.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="37.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="38.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="39.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="40.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="41.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="42.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="43.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="44.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
|
||||||
<nil key="activeLocalization"/>
|
|
||||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
|
||||||
<nil key="sourceID"/>
|
|
||||||
<int key="maxID">52</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">DeletionOptions</string>
|
|
||||||
<string key="superclassName">NSWindowController</string>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actions">
|
|
||||||
<string key="cancel:">id</string>
|
|
||||||
<string key="proceed:">id</string>
|
|
||||||
<string key="updateOptions:">id</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<object class="IBActionInfo" key="cancel:">
|
|
||||||
<string key="name">cancel:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="proceed:">
|
|
||||||
<string key="name">proceed:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="updateOptions:">
|
|
||||||
<string key="name">updateOptions:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="directButton">NSButton</string>
|
|
||||||
<string key="hardlinkButton">NSButton</string>
|
|
||||||
<string key="messageTextField">NSTextField</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<object class="IBToOneOutletInfo" key="directButton">
|
|
||||||
<string key="name">directButton</string>
|
|
||||||
<string key="candidateClassName">NSButton</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="hardlinkButton">
|
|
||||||
<string key="name">hardlinkButton</string>
|
|
||||||
<string key="candidateClassName">NSButton</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="messageTextField">
|
|
||||||
<string key="name">messageTextField</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/DeletionOptions.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
|
|
||||||
<string key="NS.key.0">NSSwitch</string>
|
|
||||||
<string key="NS.object.0">{15, 15}</string>
|
|
||||||
</object>
|
|
||||||
</data>
|
|
||||||
</archive>
|
|
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSPanel"; title = "Details of Selected File"; ObjectID = "5"; */
|
|
||||||
"5.title" = "Details of Selected File";
|
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Selected"; ObjectID = "9"; */
|
|
||||||
"9.headerCell.title" = "Selected";
|
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Reference"; ObjectID = "10"; */
|
|
||||||
"10.headerCell.title" = "Reference";
|
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Attribute"; ObjectID = "11"; */
|
|
||||||
"11.headerCell.title" = "Attribute";
|
|
@ -1,519 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
|
|
||||||
<data>
|
|
||||||
<int key="IBDocument.SystemTarget">1060</int>
|
|
||||||
<string key="IBDocument.SystemVersion">11B26</string>
|
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">1617</string>
|
|
||||||
<string key="IBDocument.AppKitVersion">1138</string>
|
|
||||||
<string key="IBDocument.HIToolboxVersion">566.00</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="NS.object.0">1617</string>
|
|
||||||
</object>
|
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSCustomObject</string>
|
|
||||||
<string>NSScrollView</string>
|
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSTextFieldCell</string>
|
|
||||||
<string>NSTableHeaderView</string>
|
|
||||||
<string>NSTableColumn</string>
|
|
||||||
<string>NSScroller</string>
|
|
||||||
<string>NSTableView</string>
|
|
||||||
</array>
|
|
||||||
<array key="IBDocument.PluginDependencies">
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</array>
|
|
||||||
<dictionary class="NSMutableDictionary" key="IBDocument.Metadata"/>
|
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="247693826">
|
|
||||||
<object class="NSCustomObject" id="449947658">
|
|
||||||
<string key="NSClassName">DetailsPanel</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="176092317">
|
|
||||||
<string key="NSClassName">FirstResponder</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="492866996">
|
|
||||||
<string key="NSClassName">NSApplication</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSWindowTemplate" id="476890502">
|
|
||||||
<int key="NSWindowStyleMask">155</int>
|
|
||||||
<int key="NSWindowBacking">2</int>
|
|
||||||
<string key="NSWindowRect">{{33, 261}, {451, 146}}</string>
|
|
||||||
<int key="NSWTFlags">-260571136</int>
|
|
||||||
<string key="NSWindowTitle">Details of Selected File</string>
|
|
||||||
<object class="NSMutableString" key="NSWindowClass">
|
|
||||||
<characters key="NS.bytes">NSPanel</characters>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableString" key="NSViewClass">
|
|
||||||
<characters key="NS.bytes">View</characters>
|
|
||||||
</object>
|
|
||||||
<nil key="NSUserInterfaceItemIdentifier"/>
|
|
||||||
<string key="NSWindowContentMinSize">{451, 146}</string>
|
|
||||||
<object class="NSView" key="NSWindowView" id="1027711962">
|
|
||||||
<reference key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSScrollView" id="362108788">
|
|
||||||
<reference key="NSNextResponder" ref="1027711962"/>
|
|
||||||
<int key="NSvFlags">274</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSClipView" id="488480549">
|
|
||||||
<reference key="NSNextResponder" ref="362108788"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTableView" id="251969872">
|
|
||||||
<reference key="NSNextResponder" ref="488480549"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{449, 128}</string>
|
|
||||||
<reference key="NSSuperview" ref="488480549"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<int key="NSTag">2</int>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTableHeaderView" key="NSHeaderView" id="374654484">
|
|
||||||
<reference key="NSNextResponder" ref="110085834"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{449, 17}</string>
|
|
||||||
<reference key="NSSuperview" ref="110085834"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSTableView" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="_NSCornerView" key="NSCornerView" id="717380566">
|
|
||||||
<reference key="NSNextResponder" ref="362108788"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{-26, 0}, {16, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="362108788"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="NSTableColumns">
|
|
||||||
<object class="NSTableColumn" id="920315484">
|
|
||||||
<string key="NSIdentifier">0</string>
|
|
||||||
<double key="NSWidth">70</double>
|
|
||||||
<double key="NSMinWidth">40</double>
|
|
||||||
<double key="NSMaxWidth">1000</double>
|
|
||||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
|
||||||
<int key="NSCellFlags">75628096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents">Attribute</string>
|
|
||||||
<object class="NSFont" key="NSSupport" id="26">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">11</double>
|
|
||||||
<int key="NSfFlags">3100</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor" id="690482064">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC4zMzMzMzI5OQA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor" id="427935076">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">headerTextColor</string>
|
|
||||||
<object class="NSColor" key="NSColor" id="45430568">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MAA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextFieldCell" key="NSDataCell" id="402714943">
|
|
||||||
<int key="NSCellFlags">337772096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<reference key="NSControlView" ref="251969872"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor" id="1015576963">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlBackgroundColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor" id="183338835">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlTextColor</string>
|
|
||||||
<reference key="NSColor" ref="45430568"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<int key="NSResizingMask">2</int>
|
|
||||||
<bool key="NSIsResizeable">YES</bool>
|
|
||||||
<reference key="NSTableView" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSTableColumn" id="683288430">
|
|
||||||
<string key="NSIdentifier">1</string>
|
|
||||||
<double key="NSWidth">198</double>
|
|
||||||
<double key="NSMinWidth">40</double>
|
|
||||||
<double key="NSMaxWidth">1000</double>
|
|
||||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
|
||||||
<int key="NSCellFlags">75628096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents">Selected</string>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="690482064"/>
|
|
||||||
<reference key="NSTextColor" ref="427935076"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextFieldCell" key="NSDataCell" id="649788063">
|
|
||||||
<int key="NSCellFlags">337772096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<reference key="NSControlView" ref="251969872"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="1015576963"/>
|
|
||||||
<reference key="NSTextColor" ref="183338835"/>
|
|
||||||
</object>
|
|
||||||
<int key="NSResizingMask">3</int>
|
|
||||||
<bool key="NSIsResizeable">YES</bool>
|
|
||||||
<reference key="NSTableView" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSTableColumn" id="694550305">
|
|
||||||
<string key="NSIdentifier">2</string>
|
|
||||||
<double key="NSWidth">172</double>
|
|
||||||
<double key="NSMinWidth">56.4755859375</double>
|
|
||||||
<double key="NSMaxWidth">1000</double>
|
|
||||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
|
||||||
<int key="NSCellFlags">75628096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents">Reference</string>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">headerColor</string>
|
|
||||||
<object class="NSColor" key="NSColor" id="666582600">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MQA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<reference key="NSTextColor" ref="427935076"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextFieldCell" key="NSDataCell" id="915876533">
|
|
||||||
<int key="NSCellFlags">337772096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<reference key="NSControlView" ref="251969872"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="1015576963"/>
|
|
||||||
<reference key="NSTextColor" ref="183338835"/>
|
|
||||||
</object>
|
|
||||||
<int key="NSResizingMask">3</int>
|
|
||||||
<bool key="NSIsResizeable">YES</bool>
|
|
||||||
<reference key="NSTableView" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<double key="NSIntercellSpacingWidth">3</double>
|
|
||||||
<double key="NSIntercellSpacingHeight">2</double>
|
|
||||||
<reference key="NSBackgroundColor" ref="666582600"/>
|
|
||||||
<object class="NSColor" key="NSGridColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">gridColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC41AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<double key="NSRowHeight">14</double>
|
|
||||||
<int key="NSTvFlags">1111523328</int>
|
|
||||||
<reference key="NSDelegate"/>
|
|
||||||
<reference key="NSDataSource"/>
|
|
||||||
<int key="NSColumnAutoresizingStyle">1</int>
|
|
||||||
<int key="NSDraggingSourceMaskForLocal">15</int>
|
|
||||||
<int key="NSDraggingSourceMaskForNonLocal">0</int>
|
|
||||||
<bool key="NSAllowsTypeSelect">YES</bool>
|
|
||||||
<int key="NSTableViewDraggingDestinationStyle">0</int>
|
|
||||||
<int key="NSTableViewGroupRowStyle">1</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 17}, {449, 128}}</string>
|
|
||||||
<reference key="NSSuperview" ref="362108788"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="251969872"/>
|
|
||||||
<reference key="NSDocView" ref="251969872"/>
|
|
||||||
<reference key="NSBGColor" ref="1015576963"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="733942317">
|
|
||||||
<reference key="NSNextResponder" ref="362108788"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{-30, 17}, {15, 129}}</string>
|
|
||||||
<reference key="NSSuperview" ref="362108788"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSTarget" ref="362108788"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.89375001192092896</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="168632382">
|
|
||||||
<reference key="NSNextResponder" ref="362108788"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{-100, -100}, {394, 15}}</string>
|
|
||||||
<reference key="NSSuperview" ref="362108788"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<int key="NSsFlags">1</int>
|
|
||||||
<reference key="NSTarget" ref="362108788"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.96332520246505737</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSClipView" id="110085834">
|
|
||||||
<reference key="NSNextResponder" ref="362108788"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<reference ref="374654484"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 0}, {449, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="362108788"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="374654484"/>
|
|
||||||
<reference key="NSDocView" ref="374654484"/>
|
|
||||||
<reference key="NSBGColor" ref="1015576963"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<reference ref="717380566"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{451, 146}</string>
|
|
||||||
<reference key="NSSuperview" ref="1027711962"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="488480549"/>
|
|
||||||
<int key="NSsFlags">133650</int>
|
|
||||||
<reference key="NSVScroller" ref="733942317"/>
|
|
||||||
<reference key="NSHScroller" ref="168632382"/>
|
|
||||||
<reference key="NSContentView" ref="488480549"/>
|
|
||||||
<reference key="NSHeaderClipView" ref="110085834"/>
|
|
||||||
<reference key="NSCornerView" ref="717380566"/>
|
|
||||||
<bytes key="NSScrollAmts">QSAAAEEgAABBgAAAQYAAAA</bytes>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{451, 146}</string>
|
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
</object>
|
|
||||||
<string key="NSScreenRect">{{0, 0}, {1920, 1058}}</string>
|
|
||||||
<string key="NSMinSize">{451, 162}</string>
|
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
|
||||||
<string key="NSFrameAutosaveName">DetailsPanel</string>
|
|
||||||
<bool key="NSWindowIsRestorable">YES</bool>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">window</string>
|
|
||||||
<reference key="source" ref="449947658"/>
|
|
||||||
<reference key="destination" ref="476890502"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">12</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">dataSource</string>
|
|
||||||
<reference key="source" ref="251969872"/>
|
|
||||||
<reference key="destination" ref="449947658"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">21</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">detailsTable</string>
|
|
||||||
<reference key="source" ref="449947658"/>
|
|
||||||
<reference key="destination" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">22</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
|
||||||
<array key="orderedObjects">
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">0</int>
|
|
||||||
<array key="object" id="0"/>
|
|
||||||
<reference key="children" ref="247693826"/>
|
|
||||||
<nil key="parent"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-2</int>
|
|
||||||
<reference key="object" ref="449947658"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">File's Owner</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-1</int>
|
|
||||||
<reference key="object" ref="176092317"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">First Responder</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">5</int>
|
|
||||||
<reference key="object" ref="476890502"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="1027711962"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">details</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">6</int>
|
|
||||||
<reference key="object" ref="1027711962"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="362108788"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="476890502"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">7</int>
|
|
||||||
<reference key="object" ref="362108788"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="251969872"/>
|
|
||||||
<reference ref="733942317"/>
|
|
||||||
<reference ref="168632382"/>
|
|
||||||
<reference ref="374654484"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1027711962"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">8</int>
|
|
||||||
<reference key="object" ref="251969872"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="683288430"/>
|
|
||||||
<reference ref="694550305"/>
|
|
||||||
<reference ref="920315484"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="362108788"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">9</int>
|
|
||||||
<reference key="object" ref="683288430"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="649788063"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">10</int>
|
|
||||||
<reference key="object" ref="694550305"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="915876533"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">11</int>
|
|
||||||
<reference key="object" ref="920315484"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="402714943"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="251969872"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">15</int>
|
|
||||||
<reference key="object" ref="649788063"/>
|
|
||||||
<reference key="parent" ref="683288430"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">16</int>
|
|
||||||
<reference key="object" ref="915876533"/>
|
|
||||||
<reference key="parent" ref="694550305"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">17</int>
|
|
||||||
<reference key="object" ref="402714943"/>
|
|
||||||
<reference key="parent" ref="920315484"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">18</int>
|
|
||||||
<reference key="object" ref="733942317"/>
|
|
||||||
<reference key="parent" ref="362108788"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">19</int>
|
|
||||||
<reference key="object" ref="168632382"/>
|
|
||||||
<reference key="parent" ref="362108788"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">20</int>
|
|
||||||
<reference key="object" ref="374654484"/>
|
|
||||||
<reference key="parent" ref="362108788"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-3</int>
|
|
||||||
<reference key="object" ref="492866996"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">Application</string>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
|
||||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="10.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="15.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="16.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="17.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="18.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="19.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<boolean value="YES" key="20.IBShouldRemoveOnLegacySave"/>
|
|
||||||
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="5.IBWindowTemplateEditedContentRect">{{109, 671}, {451, 146}}</string>
|
|
||||||
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
|
||||||
<nil key="activeLocalization"/>
|
|
||||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
|
||||||
<nil key="sourceID"/>
|
|
||||||
<int key="maxID">22</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">DetailsPanel</string>
|
|
||||||
<string key="superclassName">HSWindowController</string>
|
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="NS.key.0">detailsTable</string>
|
|
||||||
<string key="NS.object.0">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<string key="NS.key.0">detailsTable</string>
|
|
||||||
<object class="IBToOneOutletInfo" key="NS.object.0">
|
|
||||||
<string key="name">detailsTable</string>
|
|
||||||
<string key="candidateClassName">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/DetailsPanel.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">HSWindowController</string>
|
|
||||||
<string key="superclassName">NSWindowController</string>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/HSWindowController.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<integer value="1050" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
|
|
||||||
<real value="4100" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
|
||||||
</data>
|
|
||||||
</archive>
|
|
@ -1,23 +0,0 @@
|
|||||||
/* Class = "NSTableColumn"; headerCell.title = "State"; ObjectID = "13"; */
|
|
||||||
"13.headerCell.title" = "State";
|
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Name"; ObjectID = "15"; */
|
|
||||||
"15.headerCell.title" = "Name";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Scan"; ObjectID = "48"; */
|
|
||||||
"48.title" = "Scan";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Normal"; ObjectID = "55"; */
|
|
||||||
"55.title" = "Normal";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Reference"; ObjectID = "56"; */
|
|
||||||
"56.title" = "Reference";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Excluded"; ObjectID = "57"; */
|
|
||||||
"57.title" = "Excluded";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Select folders to scan and press \"Scan\"."; ObjectID = "71"; */
|
|
||||||
"71.title" = "Select folders to scan and press \"Scan\".";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Load Results"; ObjectID = "73"; */
|
|
||||||
"73.title" = "Load Results";
|
|
File diff suppressed because it is too large
Load Diff
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "Ignore List"; ObjectID = "1"; */
|
|
||||||
"1.title" = "Ignore List";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Close"; ObjectID = "19"; */
|
|
||||||
"19.title" = "Close";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Remove Selected"; ObjectID = "21"; */
|
|
||||||
"21.title" = "Remove Selected";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Clear"; ObjectID = "28"; */
|
|
||||||
"28.title" = "Clear";
|
|
@ -1,504 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
|
|
||||||
<data>
|
|
||||||
<int key="IBDocument.SystemTarget">1060</int>
|
|
||||||
<string key="IBDocument.SystemVersion">11D50</string>
|
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2177</string>
|
|
||||||
<string key="IBDocument.AppKitVersion">1138.32</string>
|
|
||||||
<string key="IBDocument.HIToolboxVersion">568.00</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="NS.object.0">2177</string>
|
|
||||||
</object>
|
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSTableView</string>
|
|
||||||
<string>NSScrollView</string>
|
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSTableHeaderView</string>
|
|
||||||
<string>NSButtonCell</string>
|
|
||||||
<string>NSButton</string>
|
|
||||||
<string>NSScroller</string>
|
|
||||||
<string>NSCustomObject</string>
|
|
||||||
</array>
|
|
||||||
<array key="IBDocument.PluginDependencies">
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</array>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
|
||||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
|
||||||
<integer value="1" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
|
||||||
<object class="NSCustomObject" id="1001">
|
|
||||||
<string key="NSClassName">IgnoreListDialog</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1003">
|
|
||||||
<string key="NSClassName">FirstResponder</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1004">
|
|
||||||
<string key="NSClassName">NSApplication</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSWindowTemplate" id="359561441">
|
|
||||||
<int key="NSWindowStyleMask">11</int>
|
|
||||||
<int key="NSWindowBacking">2</int>
|
|
||||||
<string key="NSWindowRect">{{477, 306}, {574, 347}}</string>
|
|
||||||
<int key="NSWTFlags">1685585920</int>
|
|
||||||
<string key="NSWindowTitle">Ignore List</string>
|
|
||||||
<string key="NSWindowClass">NSWindow</string>
|
|
||||||
<nil key="NSViewClass"/>
|
|
||||||
<nil key="NSUserInterfaceItemIdentifier"/>
|
|
||||||
<object class="NSView" key="NSWindowView" id="976198330">
|
|
||||||
<reference key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSScrollView" id="458371270">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">274</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSClipView" id="831830981">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTableView" id="252791348">
|
|
||||||
<reference key="NSNextResponder" ref="831830981"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{532, 211}</string>
|
|
||||||
<reference key="NSSuperview" ref="831830981"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="777677330"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTableHeaderView" key="NSHeaderView" id="903452051">
|
|
||||||
<reference key="NSNextResponder" ref="777677330"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{532, 17}</string>
|
|
||||||
<reference key="NSSuperview" ref="777677330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="564034022"/>
|
|
||||||
<reference key="NSTableView" ref="252791348"/>
|
|
||||||
</object>
|
|
||||||
<object class="_NSCornerView" key="NSCornerView" id="564034022">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 0}, {16, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="831830981"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="NSTableColumns"/>
|
|
||||||
<double key="NSIntercellSpacingWidth">3</double>
|
|
||||||
<double key="NSIntercellSpacingHeight">2</double>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MQA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSGridColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">gridColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC41AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<double key="NSRowHeight">17</double>
|
|
||||||
<int key="NSTvFlags">1512046592</int>
|
|
||||||
<reference key="NSDelegate"/>
|
|
||||||
<reference key="NSDataSource"/>
|
|
||||||
<int key="NSColumnAutoresizingStyle">4</int>
|
|
||||||
<int key="NSDraggingSourceMaskForLocal">15</int>
|
|
||||||
<int key="NSDraggingSourceMaskForNonLocal">0</int>
|
|
||||||
<bool key="NSAllowsTypeSelect">NO</bool>
|
|
||||||
<int key="NSTableViewDraggingDestinationStyle">0</int>
|
|
||||||
<int key="NSTableViewGroupRowStyle">1</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 17}, {532, 249}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="252791348"/>
|
|
||||||
<reference key="NSDocView" ref="252791348"/>
|
|
||||||
<object class="NSColor" key="NSBGColor" id="765209443">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlBackgroundColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="99096694">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 17}, {15, 102}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="47224920"/>
|
|
||||||
<reference key="NSTarget" ref="458371270"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.99052132701421802</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="47224920">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{1, 154}, {438, 15}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="253286088"/>
|
|
||||||
<int key="NSsFlags">1</int>
|
|
||||||
<reference key="NSTarget" ref="458371270"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSCurValue">1</double>
|
|
||||||
<double key="NSPercent">0.98871331828442433</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSClipView" id="777677330">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<reference ref="903452051"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 0}, {532, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="903452051"/>
|
|
||||||
<reference key="NSDocView" ref="903452051"/>
|
|
||||||
<reference key="NSBGColor" ref="765209443"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<reference ref="564034022"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{20, 60}, {534, 267}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="831830981"/>
|
|
||||||
<int key="NSsFlags">133682</int>
|
|
||||||
<reference key="NSVScroller" ref="99096694"/>
|
|
||||||
<reference key="NSHScroller" ref="47224920"/>
|
|
||||||
<reference key="NSContentView" ref="831830981"/>
|
|
||||||
<reference key="NSHeaderClipView" ref="777677330"/>
|
|
||||||
<reference key="NSCornerView" ref="564034022"/>
|
|
||||||
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="4380169">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">289</int>
|
|
||||||
<string key="NSFrame">{{464, 12}, {96, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="373771329">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Close</string>
|
|
||||||
<object class="NSFont" key="NSSupport" id="680801460">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">13</double>
|
|
||||||
<int key="NSfFlags">1044</int>
|
|
||||||
</object>
|
|
||||||
<reference key="NSControlView" ref="4380169"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">DQ</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="253286088">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">292</int>
|
|
||||||
<string key="NSFrame">{{14, 12}, {154, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="983148229"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="671547957">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Remove Selected</string>
|
|
||||||
<reference key="NSSupport" ref="680801460"/>
|
|
||||||
<reference key="NSControlView" ref="253286088"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="983148229">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">292</int>
|
|
||||||
<string key="NSFrame">{{162, 12}, {154, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="4380169"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="409951495">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Clear</string>
|
|
||||||
<reference key="NSSupport" ref="680801460"/>
|
|
||||||
<reference key="NSControlView" ref="983148229"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{574, 347}</string>
|
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<string key="NSScreenRect">{{0, 0}, {1920, 1058}}</string>
|
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
|
||||||
<bool key="NSWindowIsRestorable">YES</bool>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">window</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="359561441"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">22</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">ignoreListTableView</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="252791348"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">30</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">removeSelected:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="253286088"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">31</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">clear:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="983148229"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">32</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">performClose:</string>
|
|
||||||
<reference key="source" ref="359561441"/>
|
|
||||||
<reference key="destination" ref="4380169"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">25</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
|
||||||
<array key="orderedObjects">
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">0</int>
|
|
||||||
<array key="object" id="0"/>
|
|
||||||
<reference key="children" ref="1000"/>
|
|
||||||
<nil key="parent"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-2</int>
|
|
||||||
<reference key="object" ref="1001"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">File's Owner</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-1</int>
|
|
||||||
<reference key="object" ref="1003"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">First Responder</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-3</int>
|
|
||||||
<reference key="object" ref="1004"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">Application</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">1</int>
|
|
||||||
<reference key="object" ref="359561441"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="976198330"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">2</int>
|
|
||||||
<reference key="object" ref="976198330"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="458371270"/>
|
|
||||||
<reference ref="4380169"/>
|
|
||||||
<reference ref="253286088"/>
|
|
||||||
<reference ref="983148229"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="359561441"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">5</int>
|
|
||||||
<reference key="object" ref="458371270"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="99096694"/>
|
|
||||||
<reference ref="47224920"/>
|
|
||||||
<reference ref="252791348"/>
|
|
||||||
<reference ref="903452051"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">6</int>
|
|
||||||
<reference key="object" ref="99096694"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">7</int>
|
|
||||||
<reference key="object" ref="47224920"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">8</int>
|
|
||||||
<reference key="object" ref="252791348"/>
|
|
||||||
<array class="NSMutableArray" key="children"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">9</int>
|
|
||||||
<reference key="object" ref="903452051"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">18</int>
|
|
||||||
<reference key="object" ref="4380169"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="373771329"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">19</int>
|
|
||||||
<reference key="object" ref="373771329"/>
|
|
||||||
<reference key="parent" ref="4380169"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">20</int>
|
|
||||||
<reference key="object" ref="253286088"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="671547957"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">21</int>
|
|
||||||
<reference key="object" ref="671547957"/>
|
|
||||||
<reference key="parent" ref="253286088"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">27</int>
|
|
||||||
<reference key="object" ref="983148229"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="409951495"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">28</int>
|
|
||||||
<reference key="object" ref="409951495"/>
|
|
||||||
<reference key="parent" ref="983148229"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
|
||||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBWindowTemplateEditedContentRect">{{477, 306}, {480, 309}}</string>
|
|
||||||
<boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
|
|
||||||
<string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="27.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
|
||||||
<nil key="activeLocalization"/>
|
|
||||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
|
||||||
<nil key="sourceID"/>
|
|
||||||
<int key="maxID">32</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">IgnoreListDialog</string>
|
|
||||||
<string key="superclassName">NSWindowController</string>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actions">
|
|
||||||
<string key="clear:">id</string>
|
|
||||||
<string key="removeSelected:">id</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<object class="IBActionInfo" key="clear:">
|
|
||||||
<string key="name">clear:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="removeSelected:">
|
|
||||||
<string key="name">removeSelected:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="NS.key.0">ignoreListTableView</string>
|
|
||||||
<string key="NS.object.0">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<string key="NS.key.0">ignoreListTableView</string>
|
|
||||||
<object class="IBToOneOutletInfo" key="NS.object.0">
|
|
||||||
<string key="name">ignoreListTableView</string>
|
|
||||||
<string key="candidateClassName">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/IgnoreListDialog.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
|
|
||||||
<real value="4100" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
|
||||||
</data>
|
|
||||||
</archive>
|
|
@ -1,27 +0,0 @@
|
|||||||
"Add New Folder..." = "Add New Folder...";
|
|
||||||
"Load from file..." = "Load from file...";
|
|
||||||
"Reset to Default" = "Reset to Default";
|
|
||||||
|
|
||||||
"Select a results file to load" = "Select a results file to load";
|
|
||||||
"You have unsaved results, do you really want to quit?" = "You have unsaved results, do you really want to quit?";
|
|
||||||
"Select a file to save your results to" = "Select a file to save your results to";
|
|
||||||
"Select a folder to add to the scanning list" = "Select a folder to add to the scanning list";
|
|
||||||
"You have unsaved results, do you really want to continue?" = "You have unsaved results, do you really want to continue?";
|
|
||||||
"'%@' already is in the list." = "'%@' already is in the list.";
|
|
||||||
"'%@' does not exist." = "'%@' does not exist.";
|
|
||||||
"The name '%@' already exists." = "The name '%@' already exists.";
|
|
||||||
"A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again." = "A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.";
|
|
||||||
"Your iTunes Library contains %d dead tracks ready to be removed. Continue?" = "Your iTunes Library contains %d dead tracks ready to be removed. Continue?";
|
|
||||||
"You have no dead tracks in your iTunes Library" = "You have no dead tracks in your iTunes Library";
|
|
||||||
"Do you really want to remove all your cached picture analysis?" = "Do you really want to remove all your cached picture analysis?";
|
|
||||||
|
|
||||||
|
|
||||||
"Add iTunes Directory" = "Add iTunes Directory";
|
|
||||||
"Remove Dead Tracks in iTunes" = "Remove Dead Tracks in iTunes";
|
|
||||||
|
|
||||||
"Add iPhoto Library" = "Add iPhoto Library";
|
|
||||||
"Clear Picture Cache" = "Clear Picture Cache";
|
|
||||||
|
|
||||||
"Yes" = "Yes";
|
|
||||||
"No" = "No";
|
|
||||||
"OK" = "OK";
|
|
@ -1,174 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Bring All to Front"; ObjectID = "5"; */
|
|
||||||
"5.title" = "Bring All to Front";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Window"; ObjectID = "19"; */
|
|
||||||
"19.title" = "Window";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Minimize"; ObjectID = "23"; */
|
|
||||||
"23.title" = "Minimize";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Window"; ObjectID = "24"; */
|
|
||||||
"24.title" = "Window";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "About dupeGuru"; ObjectID = "58"; */
|
|
||||||
"58.title" = "About dupeGuru";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Help"; ObjectID = "103"; */
|
|
||||||
"103.title" = "Help";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Help"; ObjectID = "106"; */
|
|
||||||
"106.title" = "Help";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "dupeGuru Help"; ObjectID = "111"; */
|
|
||||||
"111.title" = "dupeGuru Help";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Hide dupeGuru"; ObjectID = "134"; */
|
|
||||||
"134.title" = "Hide dupeGuru";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Quit dupeGuru"; ObjectID = "136"; */
|
|
||||||
"136.title" = "Quit dupeGuru";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "145"; */
|
|
||||||
"145.title" = "Hide Others";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "150"; */
|
|
||||||
"150.title" = "Show All";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Zoom"; ObjectID = "197"; */
|
|
||||||
"197.title" = "Zoom";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Details Panel"; ObjectID = "398"; */
|
|
||||||
"398.title" = "Details Panel";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "541"; */
|
|
||||||
"541.title" = "Preferences...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Folder Selection Window"; ObjectID = "579"; */
|
|
||||||
"579.title" = "Folder Selection Window";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Actions"; ObjectID = "597"; */
|
|
||||||
"597.title" = "Actions";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Actions"; ObjectID = "598"; */
|
|
||||||
"598.title" = "Actions";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Send Marked to Trash"; ObjectID = "599"; */
|
|
||||||
"599.title" = "Send Marked to Trash";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Move Marked to..."; ObjectID = "600"; */
|
|
||||||
"600.title" = "Move Marked to...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Copy Marked to..."; ObjectID = "601"; */
|
|
||||||
"601.title" = "Copy Marked to...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Make Selected Reference"; ObjectID = "602"; */
|
|
||||||
"602.title" = "Make Selected Reference";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Remove Marked from Results"; ObjectID = "603"; */
|
|
||||||
"603.title" = "Remove Marked from Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Remove Selected from Results"; ObjectID = "605"; */
|
|
||||||
"605.title" = "Remove Selected from Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Columns"; ObjectID = "618"; */
|
|
||||||
"618.title" = "Columns";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Columns"; ObjectID = "619"; */
|
|
||||||
"619.title" = "Columns";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Open Selected with Default Application"; ObjectID = "708"; */
|
|
||||||
"708.title" = "Open Selected with Default Application";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Reveal Selected in Finder"; ObjectID = "710"; */
|
|
||||||
"710.title" = "Reveal Selected in Finder";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "922"; */
|
|
||||||
"922.title" = "Add Selected to Ignore List";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Close Window"; ObjectID = "924"; */
|
|
||||||
"924.title" = "Close Window";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Start Duplicate Scan"; ObjectID = "926"; */
|
|
||||||
"926.title" = "Start Duplicate Scan";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Rename Selected"; ObjectID = "933"; */
|
|
||||||
"933.title" = "Rename Selected";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Export Results to XHTML"; ObjectID = "947"; */
|
|
||||||
"947.title" = "Export Results to XHTML";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Check for update..."; ObjectID = "950"; */
|
|
||||||
"950.title" = "Check for update...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Mode"; ObjectID = "959"; */
|
|
||||||
"959.title" = "Mode";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Mode"; ObjectID = "960"; */
|
|
||||||
"960.title" = "Mode";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Show Dupes Only"; ObjectID = "961"; */
|
|
||||||
"961.title" = "Show Dupes Only";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Show Delta Values"; ObjectID = "962"; */
|
|
||||||
"962.title" = "Show Delta Values";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Edit"; ObjectID = "965"; */
|
|
||||||
"965.title" = "Edit";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Edit"; ObjectID = "966"; */
|
|
||||||
"966.title" = "Edit";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Cut"; ObjectID = "985"; */
|
|
||||||
"985.title" = "Cut";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Copy"; ObjectID = "986"; */
|
|
||||||
"986.title" = "Copy";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Paste"; ObjectID = "991"; */
|
|
||||||
"991.title" = "Paste";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Mark All"; ObjectID = "1011"; */
|
|
||||||
"1011.title" = "Mark All";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Mark None"; ObjectID = "1012"; */
|
|
||||||
"1012.title" = "Mark None";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Invert Marking"; ObjectID = "1013"; */
|
|
||||||
"1013.title" = "Invert Marking";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Mark Selected"; ObjectID = "1014"; */
|
|
||||||
"1014.title" = "Mark Selected";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "dupeGuru Website"; ObjectID = "1023"; */
|
|
||||||
"1023.title" = "dupeGuru Website";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Invoke Custom Command"; ObjectID = "1177"; */
|
|
||||||
"1177.title" = "Invoke Custom Command";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "File"; ObjectID = "1203"; */
|
|
||||||
"1203.title" = "File";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "File"; ObjectID = "1204"; */
|
|
||||||
"1204.title" = "File";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Load Results..."; ObjectID = "1205"; */
|
|
||||||
"1205.title" = "Load Results...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Save Results..."; ObjectID = "1206"; */
|
|
||||||
"1206.title" = "Save Results...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Load Recent Results"; ObjectID = "1239"; */
|
|
||||||
"1239.title" = "Load Recent Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Load Recent Results"; ObjectID = "1240"; */
|
|
||||||
"1240.title" = "Load Recent Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Results Window"; ObjectID = "1272"; */
|
|
||||||
"1272.title" = "Results Window";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Re-Prioritize Results"; ObjectID = "1276"; */
|
|
||||||
"1276.title" = "Re-Prioritize Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Ignore List"; ObjectID = "1283"; */
|
|
||||||
"1283.title" = "Ignore List";
|
|
File diff suppressed because it is too large
Load Diff
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "Re-Prioritize duplicates"; ObjectID = "1"; */
|
|
||||||
"1.title" = "Re-Prioritize duplicates";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Ok"; ObjectID = "37"; */
|
|
||||||
"37.title" = "Ok";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "39"; */
|
|
||||||
"39.title" = "Cancel";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Add criteria to the right box and click OK to send the dupes that correspond the best to these criteria to their respective group's reference position. Read the help file for more information."; ObjectID = "41"; */
|
|
||||||
"41.title" = "Add criteria to the right box and click OK to send the dupes that correspond the best to these criteria to their respective group's reference position. Read the help file for more information.";
|
|
@ -1,897 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
|
|
||||||
<data>
|
|
||||||
<int key="IBDocument.SystemTarget">1060</int>
|
|
||||||
<string key="IBDocument.SystemVersion">11D50</string>
|
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
|
|
||||||
<string key="IBDocument.AppKitVersion">1138.32</string>
|
|
||||||
<string key="IBDocument.HIToolboxVersion">568.00</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="NS.object.0">2182</string>
|
|
||||||
</object>
|
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
|
||||||
<string>NSTextField</string>
|
|
||||||
<string>NSPopUpButton</string>
|
|
||||||
<string>NSScroller</string>
|
|
||||||
<string>NSButton</string>
|
|
||||||
<string>NSMenu</string>
|
|
||||||
<string>NSScrollView</string>
|
|
||||||
<string>NSTextFieldCell</string>
|
|
||||||
<string>NSButtonCell</string>
|
|
||||||
<string>NSTableView</string>
|
|
||||||
<string>NSCustomObject</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSPopUpButtonCell</string>
|
|
||||||
<string>NSTableColumn</string>
|
|
||||||
</array>
|
|
||||||
<array key="IBDocument.PluginDependencies">
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</array>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
|
||||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
|
||||||
<integer value="1" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
|
||||||
<object class="NSCustomObject" id="1001">
|
|
||||||
<string key="NSClassName">PrioritizeDialog</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1003">
|
|
||||||
<string key="NSClassName">FirstResponder</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1004">
|
|
||||||
<string key="NSClassName">NSApplication</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSWindowTemplate" id="1005">
|
|
||||||
<int key="NSWindowStyleMask">9</int>
|
|
||||||
<int key="NSWindowBacking">2</int>
|
|
||||||
<string key="NSWindowRect">{{196, 240}, {609, 401}}</string>
|
|
||||||
<int key="NSWTFlags">1618477056</int>
|
|
||||||
<string key="NSWindowTitle">Re-Prioritize duplicates</string>
|
|
||||||
<string key="NSWindowClass">NSWindow</string>
|
|
||||||
<nil key="NSViewClass"/>
|
|
||||||
<nil key="NSUserInterfaceItemIdentifier"/>
|
|
||||||
<object class="NSView" key="NSWindowView" id="1006">
|
|
||||||
<reference key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSPopUpButton" id="357095790">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{17, 298}, {268, 26}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="386461059"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:179</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSPopUpButtonCell" key="NSCell" id="892922362">
|
|
||||||
<int key="NSCellFlags">-2076049856</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<object class="NSFont" key="NSSupport" id="591283433">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">13</double>
|
|
||||||
<int key="NSfFlags">1044</int>
|
|
||||||
</object>
|
|
||||||
<string key="NSCellIdentifier">_NS:179</string>
|
|
||||||
<reference key="NSControlView" ref="357095790"/>
|
|
||||||
<int key="NSButtonFlags">109199615</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">400</int>
|
|
||||||
<int key="NSPeriodicInterval">75</int>
|
|
||||||
<nil key="NSMenuItem"/>
|
|
||||||
<bool key="NSMenuItemRespectAlignment">YES</bool>
|
|
||||||
<object class="NSMenu" key="NSMenu" id="309249465">
|
|
||||||
<string key="NSTitle">OtherViews</string>
|
|
||||||
<array class="NSMutableArray" key="NSMenuItems"/>
|
|
||||||
<reference key="NSMenuFont" ref="591283433"/>
|
|
||||||
</object>
|
|
||||||
<int key="NSSelectedIndex">-1</int>
|
|
||||||
<int key="NSPreferredEdge">1</int>
|
|
||||||
<bool key="NSUsesItemFromMenu">YES</bool>
|
|
||||||
<bool key="NSAltersState">YES</bool>
|
|
||||||
<int key="NSArrowPosition">2</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSScrollView" id="386461059">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">276</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSClipView" id="991694656">
|
|
||||||
<reference key="NSNextResponder" ref="386461059"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTableView" id="675311684">
|
|
||||||
<reference key="NSNextResponder" ref="991694656"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{260, 233}</string>
|
|
||||||
<reference key="NSSuperview" ref="991694656"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="978953877"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1197</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="_NSCornerView" key="NSCornerView">
|
|
||||||
<nil key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 0}, {16, 17}}</string>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1202</string>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="NSTableColumns">
|
|
||||||
<object class="NSTableColumn" id="331887935">
|
|
||||||
<double key="NSWidth">257</double>
|
|
||||||
<double key="NSMinWidth">40</double>
|
|
||||||
<double key="NSMaxWidth">1000</double>
|
|
||||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
|
||||||
<int key="NSCellFlags">75628096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents"/>
|
|
||||||
<object class="NSFont" key="NSSupport" id="26">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">11</double>
|
|
||||||
<int key="NSfFlags">3100</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor" id="165509352">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">headerTextColor</string>
|
|
||||||
<object class="NSColor" key="NSColor" id="95789318">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MAA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextFieldCell" key="NSDataCell" id="252516817">
|
|
||||||
<int key="NSCellFlags">337772096</int>
|
|
||||||
<int key="NSCellFlags2">2560</int>
|
|
||||||
<string key="NSContents"/>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<reference key="NSControlView" ref="675311684"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor" id="768431893">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlBackgroundColor</string>
|
|
||||||
<object class="NSColor" key="NSColor" id="857981892">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor" id="983887457">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlTextColor</string>
|
|
||||||
<reference key="NSColor" ref="95789318"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<int key="NSResizingMask">3</int>
|
|
||||||
<bool key="NSIsResizeable">YES</bool>
|
|
||||||
<bool key="NSIsEditable">YES</bool>
|
|
||||||
<reference key="NSTableView" ref="675311684"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<double key="NSIntercellSpacingWidth">3</double>
|
|
||||||
<double key="NSIntercellSpacingHeight">2</double>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor" id="949356842">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MQA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSGridColor" id="353256269">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">gridColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC41AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<double key="NSRowHeight">17</double>
|
|
||||||
<int key="NSTvFlags">306184192</int>
|
|
||||||
<reference key="NSDelegate"/>
|
|
||||||
<reference key="NSDataSource"/>
|
|
||||||
<int key="NSColumnAutoresizingStyle">4</int>
|
|
||||||
<int key="NSDraggingSourceMaskForLocal">15</int>
|
|
||||||
<int key="NSDraggingSourceMaskForNonLocal">0</int>
|
|
||||||
<bool key="NSAllowsTypeSelect">NO</bool>
|
|
||||||
<int key="NSTableViewDraggingDestinationStyle">0</int>
|
|
||||||
<int key="NSTableViewGroupRowStyle">1</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 1}, {260, 233}}</string>
|
|
||||||
<reference key="NSSuperview" ref="386461059"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="675311684"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1195</string>
|
|
||||||
<reference key="NSDocView" ref="675311684"/>
|
|
||||||
<reference key="NSBGColor" ref="768431893"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="978953877">
|
|
||||||
<reference key="NSNextResponder" ref="386461059"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 17}, {15, 102}}</string>
|
|
||||||
<reference key="NSSuperview" ref="386461059"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="1055237002"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1214</string>
|
|
||||||
<reference key="NSTarget" ref="386461059"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.9925373134328358</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="1055237002">
|
|
||||||
<reference key="NSNextResponder" ref="386461059"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{1, 119}, {223, 15}}</string>
|
|
||||||
<reference key="NSSuperview" ref="386461059"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="878293971"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1216</string>
|
|
||||||
<int key="NSsFlags">1</int>
|
|
||||||
<reference key="NSTarget" ref="386461059"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.99581589958159</double>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{20, 60}, {262, 235}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="991694656"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1193</string>
|
|
||||||
<int key="NSsFlags">133682</int>
|
|
||||||
<reference key="NSVScroller" ref="978953877"/>
|
|
||||||
<reference key="NSHScroller" ref="1055237002"/>
|
|
||||||
<reference key="NSContentView" ref="991694656"/>
|
|
||||||
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSScrollView" id="687805562">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">274</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSClipView" id="256485327">
|
|
||||||
<reference key="NSNextResponder" ref="687805562"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTableView" id="69698213">
|
|
||||||
<reference key="NSNextResponder" ref="256485327"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{248, 260}</string>
|
|
||||||
<reference key="NSSuperview" ref="256485327"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="258173410"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1197</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="_NSCornerView" key="NSCornerView">
|
|
||||||
<nil key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 0}, {16, 17}}</string>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1202</string>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="NSTableColumns">
|
|
||||||
<object class="NSTableColumn" id="604129553">
|
|
||||||
<double key="NSWidth">245</double>
|
|
||||||
<double key="NSMinWidth">40</double>
|
|
||||||
<double key="NSMaxWidth">1000</double>
|
|
||||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
|
||||||
<int key="NSCellFlags">75628096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents"/>
|
|
||||||
<reference key="NSSupport" ref="26"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
|
|
||||||
</object>
|
|
||||||
<reference key="NSTextColor" ref="165509352"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextFieldCell" key="NSDataCell" id="998326916">
|
|
||||||
<int key="NSCellFlags">337772096</int>
|
|
||||||
<int key="NSCellFlags2">2048</int>
|
|
||||||
<string key="NSContents"/>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<reference key="NSControlView" ref="69698213"/>
|
|
||||||
<reference key="NSBackgroundColor" ref="768431893"/>
|
|
||||||
<reference key="NSTextColor" ref="983887457"/>
|
|
||||||
</object>
|
|
||||||
<int key="NSResizingMask">3</int>
|
|
||||||
<bool key="NSIsResizeable">YES</bool>
|
|
||||||
<bool key="NSIsEditable">YES</bool>
|
|
||||||
<reference key="NSTableView" ref="69698213"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<double key="NSIntercellSpacingWidth">3</double>
|
|
||||||
<double key="NSIntercellSpacingHeight">2</double>
|
|
||||||
<reference key="NSBackgroundColor" ref="949356842"/>
|
|
||||||
<reference key="NSGridColor" ref="353256269"/>
|
|
||||||
<double key="NSRowHeight">17</double>
|
|
||||||
<int key="NSTvFlags">306184192</int>
|
|
||||||
<reference key="NSDelegate"/>
|
|
||||||
<reference key="NSDataSource"/>
|
|
||||||
<int key="NSColumnAutoresizingStyle">4</int>
|
|
||||||
<int key="NSDraggingSourceMaskForLocal">15</int>
|
|
||||||
<int key="NSDraggingSourceMaskForNonLocal">0</int>
|
|
||||||
<bool key="NSAllowsTypeSelect">NO</bool>
|
|
||||||
<int key="NSTableViewDraggingDestinationStyle">0</int>
|
|
||||||
<int key="NSTableViewGroupRowStyle">1</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 1}, {248, 260}}</string>
|
|
||||||
<reference key="NSSuperview" ref="687805562"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="69698213"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1195</string>
|
|
||||||
<reference key="NSDocView" ref="69698213"/>
|
|
||||||
<reference key="NSBGColor" ref="768431893"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="258173410">
|
|
||||||
<reference key="NSNextResponder" ref="687805562"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 17}, {15, 102}}</string>
|
|
||||||
<reference key="NSSuperview" ref="687805562"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="218354894"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1214</string>
|
|
||||||
<reference key="NSTarget" ref="687805562"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.9925373134328358</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="218354894">
|
|
||||||
<reference key="NSNextResponder" ref="687805562"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{1, 119}, {223, 15}}</string>
|
|
||||||
<reference key="NSSuperview" ref="687805562"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="955319632"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1216</string>
|
|
||||||
<int key="NSsFlags">1</int>
|
|
||||||
<reference key="NSTarget" ref="687805562"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.99581589958159</double>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{339, 60}, {250, 262}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="256485327"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:1193</string>
|
|
||||||
<int key="NSsFlags">133682</int>
|
|
||||||
<reference key="NSVScroller" ref="258173410"/>
|
|
||||||
<reference key="NSHScroller" ref="218354894"/>
|
|
||||||
<reference key="NSContentView" ref="256485327"/>
|
|
||||||
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="878293971">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{284, 186}, {53, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="596965746"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:161</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="208161580">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">--></string>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:161</string>
|
|
||||||
<reference key="NSControlView" ref="878293971"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="596965746">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{284, 160}, {53, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="687805562"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:161</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="410417059">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents"><--</string>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:161</string>
|
|
||||||
<reference key="NSControlView" ref="596965746"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="620738811">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">289</int>
|
|
||||||
<string key="NSFrame">{{495, 12}, {100, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:161</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="468133349">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Ok</string>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:161</string>
|
|
||||||
<reference key="NSControlView" ref="620738811"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">DQ</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="955319632">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">289</int>
|
|
||||||
<string key="NSFrame">{{395, 12}, {100, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="620738811"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:161</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="323479517">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Cancel</string>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:161</string>
|
|
||||||
<reference key="NSControlView" ref="955319632"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">Gw</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSTextField" id="970734229">
|
|
||||||
<reference key="NSNextResponder" ref="1006"/>
|
|
||||||
<int key="NSvFlags">268</int>
|
|
||||||
<string key="NSFrame">{{17, 330}, {575, 51}}</string>
|
|
||||||
<reference key="NSSuperview" ref="1006"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="357095790"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:3936</string>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTextFieldCell" key="NSCell" id="424127272">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">4194304</int>
|
|
||||||
<string key="NSContents">Add criteria to the right box and click OK to send the dupes that correspond the best to these criteria to their respective group's reference position. Read the help file for more information.</string>
|
|
||||||
<reference key="NSSupport" ref="591283433"/>
|
|
||||||
<string key="NSCellIdentifier">_NS:3936</string>
|
|
||||||
<reference key="NSControlView" ref="970734229"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlColor</string>
|
|
||||||
<reference key="NSColor" ref="857981892"/>
|
|
||||||
</object>
|
|
||||||
<reference key="NSTextColor" ref="983887457"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{609, 401}</string>
|
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="970734229"/>
|
|
||||||
</object>
|
|
||||||
<string key="NSScreenRect">{{0, 0}, {1920, 1058}}</string>
|
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
|
||||||
<bool key="NSWindowIsRestorable">YES</bool>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">categoryPopUpView</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="357095790"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">10</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">criteriaTableView</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="675311684"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">20</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">prioritizationTableView</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="69698213"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">33</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">addSelected:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="878293971"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">34</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">removeSelected:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="596965746"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">35</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">cancel:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="955319632"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">42</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">ok:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="620738811"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">43</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">window</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="1005"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">44</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
|
||||||
<array key="orderedObjects">
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">0</int>
|
|
||||||
<array key="object" id="0"/>
|
|
||||||
<reference key="children" ref="1000"/>
|
|
||||||
<nil key="parent"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-2</int>
|
|
||||||
<reference key="object" ref="1001"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">File's Owner</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-1</int>
|
|
||||||
<reference key="object" ref="1003"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">First Responder</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-3</int>
|
|
||||||
<reference key="object" ref="1004"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">Application</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">1</int>
|
|
||||||
<reference key="object" ref="1005"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="1006"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">2</int>
|
|
||||||
<reference key="object" ref="1006"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="970734229"/>
|
|
||||||
<reference ref="357095790"/>
|
|
||||||
<reference ref="386461059"/>
|
|
||||||
<reference ref="878293971"/>
|
|
||||||
<reference ref="596965746"/>
|
|
||||||
<reference ref="687805562"/>
|
|
||||||
<reference ref="620738811"/>
|
|
||||||
<reference ref="955319632"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1005"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">3</int>
|
|
||||||
<reference key="object" ref="357095790"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="892922362"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">4</int>
|
|
||||||
<reference key="object" ref="892922362"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="309249465"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="357095790"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">5</int>
|
|
||||||
<reference key="object" ref="309249465"/>
|
|
||||||
<array class="NSMutableArray" key="children"/>
|
|
||||||
<reference key="parent" ref="892922362"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">11</int>
|
|
||||||
<reference key="object" ref="386461059"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="978953877"/>
|
|
||||||
<reference ref="1055237002"/>
|
|
||||||
<reference ref="675311684"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">12</int>
|
|
||||||
<reference key="object" ref="978953877"/>
|
|
||||||
<reference key="parent" ref="386461059"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">14</int>
|
|
||||||
<reference key="object" ref="1055237002"/>
|
|
||||||
<reference key="parent" ref="386461059"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">15</int>
|
|
||||||
<reference key="object" ref="675311684"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="331887935"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="386461059"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">16</int>
|
|
||||||
<reference key="object" ref="331887935"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="252516817"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="675311684"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">19</int>
|
|
||||||
<reference key="object" ref="252516817"/>
|
|
||||||
<reference key="parent" ref="331887935"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">21</int>
|
|
||||||
<reference key="object" ref="878293971"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="208161580"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">22</int>
|
|
||||||
<reference key="object" ref="208161580"/>
|
|
||||||
<reference key="parent" ref="878293971"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">23</int>
|
|
||||||
<reference key="object" ref="596965746"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="410417059"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">24</int>
|
|
||||||
<reference key="object" ref="410417059"/>
|
|
||||||
<reference key="parent" ref="596965746"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">25</int>
|
|
||||||
<reference key="object" ref="687805562"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="69698213"/>
|
|
||||||
<reference ref="218354894"/>
|
|
||||||
<reference ref="258173410"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">26</int>
|
|
||||||
<reference key="object" ref="69698213"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="604129553"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="687805562"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">27</int>
|
|
||||||
<reference key="object" ref="218354894"/>
|
|
||||||
<reference key="parent" ref="687805562"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">28</int>
|
|
||||||
<reference key="object" ref="258173410"/>
|
|
||||||
<reference key="parent" ref="687805562"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">29</int>
|
|
||||||
<reference key="object" ref="604129553"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="998326916"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="69698213"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">30</int>
|
|
||||||
<reference key="object" ref="998326916"/>
|
|
||||||
<reference key="parent" ref="604129553"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">36</int>
|
|
||||||
<reference key="object" ref="620738811"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="468133349"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">37</int>
|
|
||||||
<reference key="object" ref="468133349"/>
|
|
||||||
<reference key="parent" ref="620738811"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">38</int>
|
|
||||||
<reference key="object" ref="955319632"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="323479517"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">39</int>
|
|
||||||
<reference key="object" ref="323479517"/>
|
|
||||||
<reference key="parent" ref="955319632"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">40</int>
|
|
||||||
<reference key="object" ref="970734229"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="424127272"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="1006"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">41</int>
|
|
||||||
<reference key="object" ref="424127272"/>
|
|
||||||
<reference key="parent" ref="970734229"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
|
||||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
|
|
||||||
<boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
|
|
||||||
<string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="14.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="22.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="23.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="24.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="25.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="26.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="27.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="30.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="36.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="37.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="38.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="39.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="40.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="41.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
|
||||||
<nil key="activeLocalization"/>
|
|
||||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
|
||||||
<nil key="sourceID"/>
|
|
||||||
<int key="maxID">44</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">PrioritizeDialog</string>
|
|
||||||
<string key="superclassName">NSWindowController</string>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actions">
|
|
||||||
<string key="addSelected:">id</string>
|
|
||||||
<string key="cancel:">id</string>
|
|
||||||
<string key="ok:">id</string>
|
|
||||||
<string key="removeSelected:">id</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<object class="IBActionInfo" key="addSelected:">
|
|
||||||
<string key="name">addSelected:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="cancel:">
|
|
||||||
<string key="name">cancel:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="ok:">
|
|
||||||
<string key="name">ok:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo" key="removeSelected:">
|
|
||||||
<string key="name">removeSelected:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="categoryPopUpView">NSPopUpButton</string>
|
|
||||||
<string key="criteriaTableView">NSTableView</string>
|
|
||||||
<string key="prioritizationTableView">NSTableView</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<object class="IBToOneOutletInfo" key="categoryPopUpView">
|
|
||||||
<string key="name">categoryPopUpView</string>
|
|
||||||
<string key="candidateClassName">NSPopUpButton</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="criteriaTableView">
|
|
||||||
<string key="name">criteriaTableView</string>
|
|
||||||
<string key="candidateClassName">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="prioritizationTableView">
|
|
||||||
<string key="name">prioritizationTableView</string>
|
|
||||||
<string key="candidateClassName">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/PrioritizeDialog.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
|
|
||||||
<real value="4100" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
|
||||||
</data>
|
|
||||||
</archive>
|
|
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "Problems!"; ObjectID = "1"; */
|
|
||||||
"1.title" = "Problems!";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results."; ObjectID = "4"; */
|
|
||||||
"4.title" = "There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results.";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Close"; ObjectID = "19"; */
|
|
||||||
"19.title" = "Close";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Reveal Selected"; ObjectID = "21"; */
|
|
||||||
"21.title" = "Reveal Selected";
|
|
@ -1,500 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
|
|
||||||
<data>
|
|
||||||
<int key="IBDocument.SystemTarget">1060</int>
|
|
||||||
<string key="IBDocument.SystemVersion">11D50</string>
|
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
|
|
||||||
<string key="IBDocument.AppKitVersion">1138.32</string>
|
|
||||||
<string key="IBDocument.HIToolboxVersion">568.00</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="NS.object.0">2182</string>
|
|
||||||
</object>
|
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
|
||||||
<string>NSTextField</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSScrollView</string>
|
|
||||||
<string>NSCustomObject</string>
|
|
||||||
<string>NSTableView</string>
|
|
||||||
<string>NSTableHeaderView</string>
|
|
||||||
<string>NSButtonCell</string>
|
|
||||||
<string>NSButton</string>
|
|
||||||
<string>NSScroller</string>
|
|
||||||
<string>NSTextFieldCell</string>
|
|
||||||
</array>
|
|
||||||
<array key="IBDocument.PluginDependencies">
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</array>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
|
||||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
|
||||||
<integer value="1" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
|
||||||
<object class="NSCustomObject" id="1001">
|
|
||||||
<string key="NSClassName">ProblemDialog</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1003">
|
|
||||||
<string key="NSClassName">FirstResponder</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSCustomObject" id="1004">
|
|
||||||
<string key="NSClassName">NSApplication</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSWindowTemplate" id="359561441">
|
|
||||||
<int key="NSWindowStyleMask">11</int>
|
|
||||||
<int key="NSWindowBacking">2</int>
|
|
||||||
<string key="NSWindowRect">{{477, 306}, {480, 309}}</string>
|
|
||||||
<int key="NSWTFlags">1685585920</int>
|
|
||||||
<string key="NSWindowTitle">Problems!</string>
|
|
||||||
<string key="NSWindowClass">NSWindow</string>
|
|
||||||
<nil key="NSViewClass"/>
|
|
||||||
<nil key="NSUserInterfaceItemIdentifier"/>
|
|
||||||
<object class="NSView" key="NSWindowView" id="976198330">
|
|
||||||
<reference key="NSNextResponder"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTextField" id="573725554">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">266</int>
|
|
||||||
<string key="NSFrame">{{17, 238}, {446, 51}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTextFieldCell" key="NSCell" id="1063844428">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">272891904</int>
|
|
||||||
<string key="NSContents">There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results.</string>
|
|
||||||
<object class="NSFont" key="NSSupport">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">13</double>
|
|
||||||
<int key="NSfFlags">16</int>
|
|
||||||
</object>
|
|
||||||
<reference key="NSControlView" ref="573725554"/>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlColor</string>
|
|
||||||
<object class="NSColor" key="NSColor" id="869923403">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSTextColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlTextColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MAA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSScrollView" id="458371270">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">274</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSClipView" id="831830981">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<object class="NSTableView" id="252791348">
|
|
||||||
<reference key="NSNextResponder" ref="831830981"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{438, 152}</string>
|
|
||||||
<reference key="NSSuperview" ref="831830981"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSTableHeaderView" key="NSHeaderView" id="903452051">
|
|
||||||
<reference key="NSNextResponder" ref="777677330"/>
|
|
||||||
<int key="NSvFlags">256</int>
|
|
||||||
<string key="NSFrameSize">{438, 17}</string>
|
|
||||||
<reference key="NSSuperview" ref="777677330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSTableView" ref="252791348"/>
|
|
||||||
</object>
|
|
||||||
<object class="_NSCornerView" key="NSCornerView" id="564034022">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 0}, {16, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
</object>
|
|
||||||
<array class="NSMutableArray" key="NSTableColumns"/>
|
|
||||||
<double key="NSIntercellSpacingWidth">3</double>
|
|
||||||
<double key="NSIntercellSpacingHeight">2</double>
|
|
||||||
<object class="NSColor" key="NSBackgroundColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MQA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSColor" key="NSGridColor">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">gridColor</string>
|
|
||||||
<object class="NSColor" key="NSColor">
|
|
||||||
<int key="NSColorSpace">3</int>
|
|
||||||
<bytes key="NSWhite">MC41AA</bytes>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<double key="NSRowHeight">17</double>
|
|
||||||
<int key="NSTvFlags">-702545920</int>
|
|
||||||
<reference key="NSDelegate"/>
|
|
||||||
<reference key="NSDataSource"/>
|
|
||||||
<int key="NSColumnAutoresizingStyle">4</int>
|
|
||||||
<int key="NSDraggingSourceMaskForLocal">15</int>
|
|
||||||
<int key="NSDraggingSourceMaskForNonLocal">0</int>
|
|
||||||
<bool key="NSAllowsTypeSelect">YES</bool>
|
|
||||||
<int key="NSTableViewDraggingDestinationStyle">0</int>
|
|
||||||
<int key="NSTableViewGroupRowStyle">1</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 17}, {438, 152}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="252791348"/>
|
|
||||||
<reference key="NSDocView" ref="252791348"/>
|
|
||||||
<object class="NSColor" key="NSBGColor" id="765209443">
|
|
||||||
<int key="NSColorSpace">6</int>
|
|
||||||
<string key="NSCatalogName">System</string>
|
|
||||||
<string key="NSColorName">controlBackgroundColor</string>
|
|
||||||
<reference key="NSColor" ref="869923403"/>
|
|
||||||
</object>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="99096694">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{224, 17}, {15, 102}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSTarget" ref="458371270"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSPercent">0.90131578947368418</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSScroller" id="47224920">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">-2147483392</int>
|
|
||||||
<string key="NSFrame">{{1, 154}, {438, 15}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<int key="NSsFlags">1</int>
|
|
||||||
<reference key="NSTarget" ref="458371270"/>
|
|
||||||
<string key="NSAction">_doScroller:</string>
|
|
||||||
<double key="NSCurValue">1</double>
|
|
||||||
<double key="NSPercent">0.98871331828442433</double>
|
|
||||||
</object>
|
|
||||||
<object class="NSClipView" id="777677330">
|
|
||||||
<reference key="NSNextResponder" ref="458371270"/>
|
|
||||||
<int key="NSvFlags">2304</int>
|
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
|
||||||
<reference ref="903452051"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{1, 0}, {438, 17}}</string>
|
|
||||||
<reference key="NSSuperview" ref="458371270"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="903452051"/>
|
|
||||||
<reference key="NSDocView" ref="903452051"/>
|
|
||||||
<reference key="NSBGColor" ref="765209443"/>
|
|
||||||
<int key="NScvFlags">4</int>
|
|
||||||
</object>
|
|
||||||
<reference ref="564034022"/>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrame">{{20, 60}, {440, 170}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="831830981"/>
|
|
||||||
<int key="NSsFlags">133682</int>
|
|
||||||
<reference key="NSVScroller" ref="99096694"/>
|
|
||||||
<reference key="NSHScroller" ref="47224920"/>
|
|
||||||
<reference key="NSContentView" ref="831830981"/>
|
|
||||||
<reference key="NSHeaderClipView" ref="777677330"/>
|
|
||||||
<reference key="NSCornerView" ref="564034022"/>
|
|
||||||
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="4380169">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">289</int>
|
|
||||||
<string key="NSFrame">{{356, 12}, {110, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="373771329">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Close</string>
|
|
||||||
<object class="NSFont" key="NSSupport" id="680801460">
|
|
||||||
<string key="NSName">LucidaGrande</string>
|
|
||||||
<double key="NSSize">13</double>
|
|
||||||
<int key="NSfFlags">1044</int>
|
|
||||||
</object>
|
|
||||||
<reference key="NSControlView" ref="4380169"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string type="base64-UTF8" key="NSKeyEquivalent">DQ</string>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSButton" id="253286088">
|
|
||||||
<reference key="NSNextResponder" ref="976198330"/>
|
|
||||||
<int key="NSvFlags">292</int>
|
|
||||||
<string key="NSFrame">{{14, 12}, {162, 32}}</string>
|
|
||||||
<reference key="NSSuperview" ref="976198330"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<bool key="NSEnabled">YES</bool>
|
|
||||||
<object class="NSButtonCell" key="NSCell" id="671547957">
|
|
||||||
<int key="NSCellFlags">67239424</int>
|
|
||||||
<int key="NSCellFlags2">134217728</int>
|
|
||||||
<string key="NSContents">Reveal Selected</string>
|
|
||||||
<reference key="NSSupport" ref="680801460"/>
|
|
||||||
<reference key="NSControlView" ref="253286088"/>
|
|
||||||
<int key="NSButtonFlags">-2038284033</int>
|
|
||||||
<int key="NSButtonFlags2">129</int>
|
|
||||||
<string key="NSAlternateContents"/>
|
|
||||||
<string key="NSKeyEquivalent"/>
|
|
||||||
<int key="NSPeriodicDelay">200</int>
|
|
||||||
<int key="NSPeriodicInterval">25</int>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<string key="NSFrameSize">{480, 309}</string>
|
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
</object>
|
|
||||||
<string key="NSScreenRect">{{0, 0}, {1920, 1058}}</string>
|
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
|
||||||
<bool key="NSWindowIsRestorable">YES</bool>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">window</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="359561441"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">22</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">revealSelected:</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="253286088"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">24</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">problemTableView</string>
|
|
||||||
<reference key="source" ref="1001"/>
|
|
||||||
<reference key="destination" ref="252791348"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">26</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">performClose:</string>
|
|
||||||
<reference key="source" ref="359561441"/>
|
|
||||||
<reference key="destination" ref="4380169"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">25</int>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
|
||||||
<array key="orderedObjects">
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">0</int>
|
|
||||||
<array key="object" id="0"/>
|
|
||||||
<reference key="children" ref="1000"/>
|
|
||||||
<nil key="parent"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-2</int>
|
|
||||||
<reference key="object" ref="1001"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">File's Owner</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-1</int>
|
|
||||||
<reference key="object" ref="1003"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">First Responder</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">-3</int>
|
|
||||||
<reference key="object" ref="1004"/>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
<string key="objectName">Application</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">1</int>
|
|
||||||
<reference key="object" ref="359561441"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="976198330"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="0"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">2</int>
|
|
||||||
<reference key="object" ref="976198330"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="573725554"/>
|
|
||||||
<reference ref="458371270"/>
|
|
||||||
<reference ref="4380169"/>
|
|
||||||
<reference ref="253286088"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="359561441"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">3</int>
|
|
||||||
<reference key="object" ref="573725554"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="1063844428"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">4</int>
|
|
||||||
<reference key="object" ref="1063844428"/>
|
|
||||||
<reference key="parent" ref="573725554"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">5</int>
|
|
||||||
<reference key="object" ref="458371270"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="99096694"/>
|
|
||||||
<reference ref="47224920"/>
|
|
||||||
<reference ref="252791348"/>
|
|
||||||
<reference ref="903452051"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">6</int>
|
|
||||||
<reference key="object" ref="99096694"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">7</int>
|
|
||||||
<reference key="object" ref="47224920"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">8</int>
|
|
||||||
<reference key="object" ref="252791348"/>
|
|
||||||
<array class="NSMutableArray" key="children"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">9</int>
|
|
||||||
<reference key="object" ref="903452051"/>
|
|
||||||
<reference key="parent" ref="458371270"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">18</int>
|
|
||||||
<reference key="object" ref="4380169"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="373771329"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">19</int>
|
|
||||||
<reference key="object" ref="373771329"/>
|
|
||||||
<reference key="parent" ref="4380169"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">20</int>
|
|
||||||
<reference key="object" ref="253286088"/>
|
|
||||||
<array class="NSMutableArray" key="children">
|
|
||||||
<reference ref="671547957"/>
|
|
||||||
</array>
|
|
||||||
<reference key="parent" ref="976198330"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">21</int>
|
|
||||||
<reference key="object" ref="671547957"/>
|
|
||||||
<reference key="parent" ref="253286088"/>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
|
||||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="1.IBWindowTemplateEditedContentRect">{{477, 306}, {480, 309}}</string>
|
|
||||||
<boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
|
|
||||||
<string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
|
||||||
<nil key="activeLocalization"/>
|
|
||||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
|
||||||
<nil key="sourceID"/>
|
|
||||||
<int key="maxID">26</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">ProblemDialog</string>
|
|
||||||
<string key="superclassName">NSWindowController</string>
|
|
||||||
<object class="NSMutableDictionary" key="actions">
|
|
||||||
<string key="NS.key.0">revealSelected:</string>
|
|
||||||
<string key="NS.object.0">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<string key="NS.key.0">revealSelected:</string>
|
|
||||||
<object class="IBActionInfo" key="NS.object.0">
|
|
||||||
<string key="name">revealSelected:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="NS.key.0">problemTableView</string>
|
|
||||||
<string key="NS.object.0">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<string key="NS.key.0">problemTableView</string>
|
|
||||||
<object class="IBToOneOutletInfo" key="NS.object.0">
|
|
||||||
<string key="name">problemTableView</string>
|
|
||||||
<string key="candidateClassName">NSTableView</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/ProblemDialog.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</array>
|
|
||||||
</object>
|
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
|
|
||||||
<real value="1060" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
|
|
||||||
<real value="4100" key="NS.object.0"/>
|
|
||||||
</object>
|
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
|
||||||
</data>
|
|
||||||
</archive>
|
|
@ -1,93 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "dupeGuru Results"; ObjectID = "1"; */
|
|
||||||
"1.title" = "dupeGuru Results";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Marked: 0 files, 0 B. Total: 0 files, 0 B."; ObjectID = "6"; */
|
|
||||||
"6.title" = "Marked: 0 files, 0 B. Total: 0 files, 0 B.";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; label = "Options"; ObjectID = "15"; */
|
|
||||||
"15.label" = "Options";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; paletteLabel = "Options"; ObjectID = "15"; */
|
|
||||||
"15.paletteLabel" = "Options";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; label = "Filter"; ObjectID = "16"; */
|
|
||||||
"16.label" = "Filter";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; paletteLabel = "Filter"; ObjectID = "16"; */
|
|
||||||
"16.paletteLabel" = "Filter";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; label = "Action"; ObjectID = "17"; */
|
|
||||||
"17.label" = "Action";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; paletteLabel = "Action"; ObjectID = "17"; */
|
|
||||||
"17.paletteLabel" = "Action";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; label = "Directories"; ObjectID = "19"; */
|
|
||||||
"19.label" = "Directories";
|
|
||||||
|
|
||||||
/* Class = "NSToolbarItem"; paletteLabel = "Directories"; ObjectID = "19"; */
|
|
||||||
"19.paletteLabel" = "Directories";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Send Marked to Trash"; ObjectID = "29"; */
|
|
||||||
"29.title" = "Send Marked to Trash";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Move Marked to..."; ObjectID = "30"; */
|
|
||||||
"30.title" = "Move Marked to...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Copy Marked to..."; ObjectID = "31"; */
|
|
||||||
"31.title" = "Copy Marked to...";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Remove Marked from Results"; ObjectID = "32"; */
|
|
||||||
"32.title" = "Remove Marked from Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Remove Selected from Results"; ObjectID = "34"; */
|
|
||||||
"34.title" = "Remove Selected from Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "35"; */
|
|
||||||
"35.title" = "Add Selected to Ignore List";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Make Selected Reference"; ObjectID = "36"; */
|
|
||||||
"36.title" = "Make Selected Reference";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Open Selected with Default Application"; ObjectID = "38"; */
|
|
||||||
"38.title" = "Open Selected with Default Application";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Reveal Selected in Finder"; ObjectID = "39"; */
|
|
||||||
"39.title" = "Reveal Selected in Finder";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Rename Selected"; ObjectID = "40"; */
|
|
||||||
"40.title" = "Rename Selected";
|
|
||||||
|
|
||||||
/* Class = "NSSearchFieldCell"; placeholderString = "Filter"; ObjectID = "42"; */
|
|
||||||
"42.placeholderString" = "Filter";
|
|
||||||
|
|
||||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[0] = "Details"; ObjectID = "44"; */
|
|
||||||
"44.ibShadowedLabels[0]" = "Details";
|
|
||||||
|
|
||||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[1] = "Dupes Only"; ObjectID = "44"; */
|
|
||||||
"44.ibShadowedLabels[1]" = "Dupes Only";
|
|
||||||
|
|
||||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[2] = "Delta"; ObjectID = "44"; */
|
|
||||||
"44.ibShadowedLabels[2]" = "Delta";
|
|
||||||
|
|
||||||
/* Class = "NSMenu"; title = "Menu"; ObjectID = "67"; */
|
|
||||||
"67.title" = "Menu";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "68"; */
|
|
||||||
"68.title" = "Add Selected to Ignore List";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Rename Selected"; ObjectID = "70"; */
|
|
||||||
"70.title" = "Rename Selected";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Remove Selected from Results"; ObjectID = "71"; */
|
|
||||||
"71.title" = "Remove Selected from Results";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Make Selected Reference"; ObjectID = "72"; */
|
|
||||||
"72.title" = "Make Selected Reference";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Reveal Selected in Finder"; ObjectID = "73"; */
|
|
||||||
"73.title" = "Reveal Selected in Finder";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Open Selected with Default Application"; ObjectID = "74"; */
|
|
||||||
"74.title" = "Open Selected with Default Application";
|
|
File diff suppressed because it is too large
Load Diff
@ -1,41 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import <Python.h>
|
|
||||||
#import <wchar.h>
|
|
||||||
#import <locale.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
|
||||||
/* We have to set the locate to UTF8 for mbstowcs() to correctly convert non-ascii chars in paths */
|
|
||||||
setlocale(LC_ALL, "en_US.UTF-8");
|
|
||||||
NSString *respath = [[NSBundle mainBundle] resourcePath];
|
|
||||||
NSString *mainpy = [respath stringByAppendingPathComponent:@"dg_cocoa.py"];
|
|
||||||
wchar_t wPythonPath[PATH_MAX+1];
|
|
||||||
NSString *pypath = [respath stringByAppendingPathComponent:@"py"];
|
|
||||||
mbstowcs(wPythonPath, [pypath fileSystemRepresentation], PATH_MAX+1);
|
|
||||||
Py_SetPath(wPythonPath);
|
|
||||||
Py_SetPythonHome(wPythonPath);
|
|
||||||
Py_Initialize();
|
|
||||||
PyEval_InitThreads();
|
|
||||||
PyGILState_STATE gilState = PyGILState_Ensure();
|
|
||||||
FILE* fp = fopen([mainpy UTF8String], "r");
|
|
||||||
PyRun_SimpleFile(fp, [mainpy UTF8String]);
|
|
||||||
fclose(fp);
|
|
||||||
PyGILState_Release(gilState);
|
|
||||||
if (gilState == PyGILState_LOCKED) {
|
|
||||||
PyThreadState_Swap(NULL);
|
|
||||||
PyEval_ReleaseLock();
|
|
||||||
}
|
|
||||||
int result = NSApplicationMain(argc, (const char **) argv);
|
|
||||||
Py_Finalize();
|
|
||||||
[pool release];
|
|
||||||
return result;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
from .deletion_options import PyDeletionOptions
|
|
||||||
from .details_panel import PyDetailsPanel
|
|
||||||
from .directory_outline import PyDirectoryOutline
|
|
||||||
from .prioritize_dialog import PyPrioritizeDialog
|
|
||||||
from .prioritize_list import PyPrioritizeList
|
|
||||||
from .problem_dialog import PyProblemDialog
|
|
||||||
from .ignore_list_dialog import PyIgnoreListDialog
|
|
||||||
from .result_table import PyResultTable
|
|
||||||
from .stats_label import PyStatsLabel
|
|
@ -1,219 +0,0 @@
|
|||||||
import logging
|
|
||||||
|
|
||||||
from objp.util import pyref, dontwrap
|
|
||||||
from jobprogress import job
|
|
||||||
import cocoa
|
|
||||||
from cocoa import install_exception_hook, proxy
|
|
||||||
from cocoa.inter import PyFairware, FairwareView
|
|
||||||
from hscommon.trans import trget
|
|
||||||
|
|
||||||
from core.app import JobType
|
|
||||||
|
|
||||||
tr = trget('ui')
|
|
||||||
|
|
||||||
JOBID2TITLE = {
|
|
||||||
JobType.Scan: tr("Scanning for duplicates"),
|
|
||||||
JobType.Load: tr("Loading"),
|
|
||||||
JobType.Move: tr("Moving"),
|
|
||||||
JobType.Copy: tr("Copying"),
|
|
||||||
JobType.Delete: tr("Sending to Trash"),
|
|
||||||
}
|
|
||||||
|
|
||||||
class DupeGuruView(FairwareView):
|
|
||||||
def askYesNoWithPrompt_(self, prompt: str) -> bool: pass
|
|
||||||
def showProblemDialog(self): pass
|
|
||||||
def selectDestFolderWithPrompt_(self, prompt: str) -> str: pass
|
|
||||||
|
|
||||||
class PyDupeGuruBase(PyFairware):
|
|
||||||
FOLLOW_PROTOCOLS = ['Worker']
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def _init(self, modelclass):
|
|
||||||
logging.basicConfig(level=logging.WARNING, format='%(levelname)s %(message)s')
|
|
||||||
install_exception_hook()
|
|
||||||
appdata = proxy.getAppdataPath()
|
|
||||||
self.model = modelclass(self, appdata)
|
|
||||||
self.progress = cocoa.ThreadedJobPerformer()
|
|
||||||
|
|
||||||
#---Sub-proxies
|
|
||||||
def detailsPanel(self) -> pyref:
|
|
||||||
return self.model.details_panel
|
|
||||||
|
|
||||||
def directoryTree(self) -> pyref:
|
|
||||||
return self.model.directory_tree
|
|
||||||
|
|
||||||
def problemDialog(self) -> pyref:
|
|
||||||
return self.model.problem_dialog
|
|
||||||
|
|
||||||
def statsLabel(self) -> pyref:
|
|
||||||
return self.model.stats_label
|
|
||||||
|
|
||||||
def resultTable(self) -> pyref:
|
|
||||||
return self.model.result_table
|
|
||||||
|
|
||||||
def ignoreListDialog(self) -> pyref:
|
|
||||||
return self.model.ignore_list_dialog
|
|
||||||
|
|
||||||
def deletionOptions(self) -> pyref:
|
|
||||||
return self.model.deletion_options
|
|
||||||
|
|
||||||
#---Directories
|
|
||||||
def addDirectory_(self, directory: str) -> int:
|
|
||||||
return self.model.add_directory(directory)
|
|
||||||
|
|
||||||
#---Results
|
|
||||||
def doScan(self):
|
|
||||||
self.model.start_scanning()
|
|
||||||
|
|
||||||
def exportToXHTML(self) -> str:
|
|
||||||
return self.model.export_to_xhtml()
|
|
||||||
|
|
||||||
def loadSession(self):
|
|
||||||
self.model.load()
|
|
||||||
|
|
||||||
def loadResultsFrom_(self, filename: str):
|
|
||||||
self.model.load_from(filename)
|
|
||||||
|
|
||||||
def markAll(self):
|
|
||||||
self.model.mark_all()
|
|
||||||
|
|
||||||
def markNone(self):
|
|
||||||
self.model.mark_none()
|
|
||||||
|
|
||||||
def markInvert(self):
|
|
||||||
self.model.mark_invert()
|
|
||||||
|
|
||||||
def purgeIgnoreList(self):
|
|
||||||
self.model.purge_ignore_list()
|
|
||||||
|
|
||||||
def toggleSelectedMark(self):
|
|
||||||
self.model.toggle_selected_mark_state()
|
|
||||||
|
|
||||||
def saveSession(self):
|
|
||||||
self.model.save()
|
|
||||||
|
|
||||||
def saveResultsAs_(self, filename: str):
|
|
||||||
self.model.save_as(filename)
|
|
||||||
|
|
||||||
#---Actions
|
|
||||||
def addSelectedToIgnoreList(self):
|
|
||||||
self.model.add_selected_to_ignore_list()
|
|
||||||
|
|
||||||
def deleteMarked(self):
|
|
||||||
self.model.delete_marked()
|
|
||||||
|
|
||||||
def applyFilter_(self, filter: str):
|
|
||||||
self.model.apply_filter(filter)
|
|
||||||
|
|
||||||
def makeSelectedReference(self):
|
|
||||||
self.model.make_selected_reference()
|
|
||||||
|
|
||||||
def copyMarked(self):
|
|
||||||
self.model.copy_or_move_marked(copy=True)
|
|
||||||
|
|
||||||
def moveMarked(self):
|
|
||||||
self.model.copy_or_move_marked(copy=False)
|
|
||||||
|
|
||||||
def openSelected(self):
|
|
||||||
self.model.open_selected()
|
|
||||||
|
|
||||||
def removeMarked(self):
|
|
||||||
self.model.remove_marked()
|
|
||||||
|
|
||||||
def removeSelected(self):
|
|
||||||
self.model.remove_selected()
|
|
||||||
|
|
||||||
def revealSelected(self):
|
|
||||||
self.model.reveal_selected()
|
|
||||||
|
|
||||||
def invokeCustomCommand(self):
|
|
||||||
self.model.invoke_custom_command()
|
|
||||||
|
|
||||||
def showIgnoreList(self):
|
|
||||||
self.model.ignore_list_dialog.show()
|
|
||||||
|
|
||||||
#---Information
|
|
||||||
def resultsAreModified(self) -> bool:
|
|
||||||
return self.model.results.is_modified
|
|
||||||
|
|
||||||
#---Properties
|
|
||||||
def setMixFileKind_(self, mix_file_kind: bool):
|
|
||||||
self.model.scanner.mix_file_kind = mix_file_kind
|
|
||||||
|
|
||||||
def setEscapeFilterRegexp_(self, escape_filter_regexp: bool):
|
|
||||||
self.model.options['escape_filter_regexp'] = escape_filter_regexp
|
|
||||||
|
|
||||||
def setRemoveEmptyFolders_(self, remove_empty_folders: bool):
|
|
||||||
self.model.options['clean_empty_dirs'] = remove_empty_folders
|
|
||||||
|
|
||||||
def setIgnoreHardlinkMatches_(self, ignore_hardlink_matches: bool):
|
|
||||||
self.model.options['ignore_hardlink_matches'] = ignore_hardlink_matches
|
|
||||||
|
|
||||||
def setCopyMoveDestType_(self, copymove_dest_type: int):
|
|
||||||
self.model.options['copymove_dest_type'] = copymove_dest_type
|
|
||||||
|
|
||||||
#---Worker
|
|
||||||
def getJobProgress(self) -> object: # NSNumber
|
|
||||||
try:
|
|
||||||
return self.progress.last_progress
|
|
||||||
except AttributeError:
|
|
||||||
# I have *no idea* why this can possible happen (last_progress is always set by
|
|
||||||
# create_job() *before* any threaded job notification, which shows the progress panel,
|
|
||||||
# is sent), but it happens anyway, so there we go. ref: #106
|
|
||||||
return -1
|
|
||||||
|
|
||||||
def getJobDesc(self) -> str:
|
|
||||||
try:
|
|
||||||
return self.progress.last_desc
|
|
||||||
except AttributeError:
|
|
||||||
# see getJobProgress
|
|
||||||
return ''
|
|
||||||
|
|
||||||
def cancelJob(self):
|
|
||||||
self.progress.job_cancelled = True
|
|
||||||
|
|
||||||
def jobCompleted_(self, jobid: str):
|
|
||||||
result = self.model._job_completed(jobid, self.progress.last_error)
|
|
||||||
if not result:
|
|
||||||
self.progress.reraise_if_error()
|
|
||||||
|
|
||||||
#--- model --> view
|
|
||||||
@dontwrap
|
|
||||||
def open_path(self, path):
|
|
||||||
proxy.openPath_(str(path))
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def reveal_path(self, path):
|
|
||||||
proxy.revealPath_(str(path))
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def start_job(self, jobid, func, args=()):
|
|
||||||
try:
|
|
||||||
j = self.progress.create_job()
|
|
||||||
args = tuple([j] + list(args))
|
|
||||||
self.progress.run_threaded(func, args=args)
|
|
||||||
except job.JobInProgressError:
|
|
||||||
proxy.postNotification_userInfo_('JobInProgress', None)
|
|
||||||
else:
|
|
||||||
ud = {'desc': JOBID2TITLE[jobid], 'jobid':jobid}
|
|
||||||
proxy.postNotification_userInfo_('JobStarted', ud)
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def ask_yes_no(self, prompt):
|
|
||||||
return self.callback.askYesNoWithPrompt_(prompt)
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def show_results_window(self):
|
|
||||||
# Not needed yet because our progress dialog is shown as a sheet of the results window,
|
|
||||||
# which causes it to be already visible when the scan/load ends.
|
|
||||||
# XXX Make progress sheet be a child of the folder selection window.
|
|
||||||
pass
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def show_problem_dialog(self):
|
|
||||||
self.callback.showProblemDialog()
|
|
||||||
|
|
||||||
@dontwrap
|
|
||||||
def select_dest_folder(self, prompt):
|
|
||||||
return self.callback.selectDestFolderWithPrompt_(prompt)
|
|
||||||
|
|
@ -1,283 +0,0 @@
|
|||||||
# Created By: Virgil Dupras
|
|
||||||
# Created On: 2006/11/16
|
|
||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
# which should be included with this package. The terms are also available at
|
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from appscript import app, its, k, CommandError, ApplicationNotFoundError
|
|
||||||
import plistlib
|
|
||||||
import time
|
|
||||||
import os.path as op
|
|
||||||
|
|
||||||
from cocoa import as_fetch, proxy
|
|
||||||
from hscommon import io
|
|
||||||
from hscommon.trans import trget
|
|
||||||
from hscommon.path import Path
|
|
||||||
|
|
||||||
from core import directories
|
|
||||||
from core.app import JobType
|
|
||||||
from core.scanner import ScanType
|
|
||||||
from core_me.app import DupeGuru as DupeGuruBase
|
|
||||||
from core_me import fs
|
|
||||||
from .app import JOBID2TITLE, PyDupeGuruBase
|
|
||||||
|
|
||||||
tr = trget('ui')
|
|
||||||
|
|
||||||
JobType.RemoveDeadTracks = 'jobRemoveDeadTracks'
|
|
||||||
JobType.ScanDeadTracks = 'jobScanDeadTracks'
|
|
||||||
|
|
||||||
JOBID2TITLE.update({
|
|
||||||
JobType.RemoveDeadTracks: tr("Removing dead tracks from your iTunes Library"),
|
|
||||||
JobType.ScanDeadTracks: tr("Scanning the iTunes Library"),
|
|
||||||
})
|
|
||||||
|
|
||||||
ITUNES = 'iTunes'
|
|
||||||
ITUNES_PATH = Path('iTunes Library')
|
|
||||||
|
|
||||||
def get_itunes_library(a):
|
|
||||||
try:
|
|
||||||
[source] = [s for s in a.sources(timeout=0) if s.kind(timeout=0) == k.library]
|
|
||||||
[library] = source.library_playlists(timeout=0)
|
|
||||||
return library
|
|
||||||
except ValueError:
|
|
||||||
logging.warning('Some unexpected iTunes configuration encountered')
|
|
||||||
return None
|
|
||||||
|
|
||||||
class ITunesSong(fs.MusicFile):
|
|
||||||
def __init__(self, song_data):
|
|
||||||
path = Path(proxy.url2path_(song_data['Location']))
|
|
||||||
fs.MusicFile.__init__(self, path)
|
|
||||||
self.id = song_data['Track ID']
|
|
||||||
|
|
||||||
def remove_from_library(self):
|
|
||||||
try:
|
|
||||||
a = app(ITUNES)
|
|
||||||
library = get_itunes_library(a)
|
|
||||||
if library is None:
|
|
||||||
return
|
|
||||||
[song] = library.file_tracks[its.database_ID == self.id]()
|
|
||||||
a.delete(song, timeout=0)
|
|
||||||
except ValueError:
|
|
||||||
msg = "Could not find song '{}' (trackid: {}) in iTunes Library".format(str(self.path), self.id)
|
|
||||||
raise EnvironmentError(msg)
|
|
||||||
except (CommandError, RuntimeError) as e:
|
|
||||||
raise EnvironmentError(str(e))
|
|
||||||
|
|
||||||
display_folder_path = ITUNES_PATH
|
|
||||||
|
|
||||||
def get_itunes_database_path():
|
|
||||||
plisturls = proxy.prefValue_inDomain_('iTunesRecentDatabases', 'com.apple.iApps')
|
|
||||||
if not plisturls:
|
|
||||||
raise directories.InvalidPathError()
|
|
||||||
plistpath = proxy.url2path_(plisturls[0])
|
|
||||||
return Path(plistpath)
|
|
||||||
|
|
||||||
def get_itunes_songs(plistpath):
|
|
||||||
if not io.exists(plistpath):
|
|
||||||
return []
|
|
||||||
plist = plistlib.readPlist(str(plistpath))
|
|
||||||
result = []
|
|
||||||
for song_data in plist['Tracks'].values():
|
|
||||||
if song_data['Track Type'] != 'File':
|
|
||||||
continue
|
|
||||||
try:
|
|
||||||
song = ITunesSong(song_data)
|
|
||||||
except KeyError: # No "Location" or "Track ID" key in track
|
|
||||||
continue
|
|
||||||
if io.exists(song.path):
|
|
||||||
result.append(song)
|
|
||||||
return result
|
|
||||||
|
|
||||||
class Directories(directories.Directories):
|
|
||||||
def __init__(self, fileclasses):
|
|
||||||
directories.Directories.__init__(self, fileclasses)
|
|
||||||
try:
|
|
||||||
self.itunes_libpath = get_itunes_database_path()
|
|
||||||
except directories.InvalidPathError:
|
|
||||||
self.itunes_libpath = None
|
|
||||||
|
|
||||||
def _get_files(self, from_path, j):
|
|
||||||
if from_path == ITUNES_PATH:
|
|
||||||
if self.itunes_libpath is None:
|
|
||||||
return []
|
|
||||||
is_ref = self.get_state(from_path) == directories.DirectoryState.Reference
|
|
||||||
songs = get_itunes_songs(self.itunes_libpath)
|
|
||||||
for song in songs:
|
|
||||||
song.is_ref = is_ref
|
|
||||||
return songs
|
|
||||||
else:
|
|
||||||
return directories.Directories._get_files(self, from_path, j)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def get_subfolders(path):
|
|
||||||
if path == ITUNES_PATH:
|
|
||||||
return []
|
|
||||||
else:
|
|
||||||
return directories.Directories.get_subfolders(path)
|
|
||||||
|
|
||||||
def add_path(self, path):
|
|
||||||
if path == ITUNES_PATH:
|
|
||||||
if path not in self:
|
|
||||||
self._dirs.append(path)
|
|
||||||
else:
|
|
||||||
directories.Directories.add_path(self, path)
|
|
||||||
|
|
||||||
def has_itunes_path(self):
|
|
||||||
return any(path == ITUNES_PATH for path in self._dirs)
|
|
||||||
|
|
||||||
def has_any_file(self):
|
|
||||||
# If we don't do that, it causes a hangup in the GUI when we click Start Scanning because
|
|
||||||
# checking if there's any file to scan involves reading the whole library. If we have the
|
|
||||||
# iTunes library, we assume we have at least one file.
|
|
||||||
if self.has_itunes_path():
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return directories.Directories.has_any_file(self)
|
|
||||||
|
|
||||||
|
|
||||||
class DupeGuruME(DupeGuruBase):
|
|
||||||
def __init__(self, view, appdata):
|
|
||||||
appdata = op.join(appdata, 'dupeGuru Music Edition')
|
|
||||||
DupeGuruBase.__init__(self, view, appdata)
|
|
||||||
# Use fileclasses set in DupeGuruBase.__init__()
|
|
||||||
self.directories = Directories(fileclasses=self.directories.fileclasses)
|
|
||||||
self.dead_tracks = []
|
|
||||||
|
|
||||||
def _do_delete(self, j, replace_with_hardlinks):
|
|
||||||
# XXX If I read correctly, Python 3.3 will allow us to go fetch inner function easily, so
|
|
||||||
# we'll be able to replace "op" below with DupeGuruBase._do_delete.op.
|
|
||||||
def op(dupe):
|
|
||||||
j.add_progress()
|
|
||||||
return self._do_delete_dupe(dupe, replace_with_hardlinks)
|
|
||||||
|
|
||||||
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
|
||||||
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
|
||||||
if any(isinstance(dupe, ITunesSong) for dupe in marked):
|
|
||||||
j.add_progress(0, desc=tr("Talking to iTunes. Don't touch it!"))
|
|
||||||
try:
|
|
||||||
a = app(ITUNES)
|
|
||||||
a.activate(timeout=0)
|
|
||||||
except (CommandError, RuntimeError, ApplicationNotFoundError):
|
|
||||||
pass
|
|
||||||
self.results.perform_on_marked(op, True)
|
|
||||||
|
|
||||||
def _do_delete_dupe(self, dupe, replace_with_hardlinks):
|
|
||||||
if isinstance(dupe, ITunesSong):
|
|
||||||
dupe.remove_from_library()
|
|
||||||
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks)
|
|
||||||
|
|
||||||
def _create_file(self, path):
|
|
||||||
if (self.directories.itunes_libpath is not None) and (path in self.directories.itunes_libpath[:-1]):
|
|
||||||
if not hasattr(self, 'itunes_songs'):
|
|
||||||
songs = get_itunes_songs(self.directories.itunes_libpath)
|
|
||||||
self.itunes_songs = {song.path: song for song in songs}
|
|
||||||
if path in self.itunes_songs:
|
|
||||||
return self.itunes_songs[path]
|
|
||||||
else:
|
|
||||||
pass # We'll return the default file type, as per the last line of this method
|
|
||||||
return DupeGuruBase._create_file(self, path)
|
|
||||||
|
|
||||||
def _job_completed(self, jobid, exc):
|
|
||||||
if (jobid in {JobType.RemoveDeadTracks, JobType.ScanDeadTracks}) and (exc is not None):
|
|
||||||
msg = tr("There were communication problems with iTunes. The operation couldn't be completed.")
|
|
||||||
self.view.show_message(msg)
|
|
||||||
return True
|
|
||||||
if jobid == JobType.ScanDeadTracks:
|
|
||||||
dead_tracks_count = len(self.dead_tracks)
|
|
||||||
if dead_tracks_count > 0:
|
|
||||||
msg = tr("Your iTunes Library contains %d dead tracks ready to be removed. Continue?")
|
|
||||||
if self.view.ask_yes_no(msg % dead_tracks_count):
|
|
||||||
self.remove_dead_tracks()
|
|
||||||
else:
|
|
||||||
msg = tr("You have no dead tracks in your iTunes Library")
|
|
||||||
self.view.show_message(msg)
|
|
||||||
if jobid == JobType.Load:
|
|
||||||
if hasattr(self, 'itunes_songs'):
|
|
||||||
# If we load another file, we want a refresh song list
|
|
||||||
del self.itunes_songs
|
|
||||||
DupeGuruBase._job_completed(self, jobid, exc)
|
|
||||||
|
|
||||||
def copy_or_move(self, dupe, copy, destination, dest_type):
|
|
||||||
if isinstance(dupe, ITunesSong):
|
|
||||||
copy = True
|
|
||||||
return DupeGuruBase.copy_or_move(self, dupe, copy, destination, dest_type)
|
|
||||||
|
|
||||||
def start_scanning(self):
|
|
||||||
if self.directories.has_itunes_path():
|
|
||||||
try:
|
|
||||||
app(ITUNES)
|
|
||||||
except ApplicationNotFoundError:
|
|
||||||
self.view.show_message(tr("The iTunes application couldn't be found."))
|
|
||||||
return
|
|
||||||
DupeGuruBase.start_scanning(self)
|
|
||||||
|
|
||||||
def remove_dead_tracks(self):
|
|
||||||
def do(j):
|
|
||||||
a = app(ITUNES)
|
|
||||||
a.activate(timeout=0)
|
|
||||||
for index, track in enumerate(j.iter_with_progress(self.dead_tracks)):
|
|
||||||
if index % 100 == 0:
|
|
||||||
time.sleep(.1)
|
|
||||||
try:
|
|
||||||
track.delete(timeout=0)
|
|
||||||
except CommandError as e:
|
|
||||||
logging.warning('Error while trying to remove a track from iTunes: %s' % str(e))
|
|
||||||
|
|
||||||
self.view.start_job(JobType.RemoveDeadTracks, do)
|
|
||||||
|
|
||||||
def scan_dead_tracks(self):
|
|
||||||
def do(j):
|
|
||||||
a = app(ITUNES)
|
|
||||||
a.activate(timeout=0)
|
|
||||||
library = get_itunes_library(a)
|
|
||||||
if library is None:
|
|
||||||
return
|
|
||||||
self.dead_tracks = []
|
|
||||||
tracks = as_fetch(library.file_tracks, k.file_track)
|
|
||||||
for index, track in enumerate(j.iter_with_progress(tracks)):
|
|
||||||
if index % 100 == 0:
|
|
||||||
time.sleep(.1)
|
|
||||||
if track.location(timeout=0) == k.missing_value:
|
|
||||||
self.dead_tracks.append(track)
|
|
||||||
logging.info('Found %d dead tracks' % len(self.dead_tracks))
|
|
||||||
|
|
||||||
self.view.start_job(JobType.ScanDeadTracks, do)
|
|
||||||
|
|
||||||
class PyDupeGuru(PyDupeGuruBase):
|
|
||||||
def __init__(self):
|
|
||||||
self._init(DupeGuruME)
|
|
||||||
|
|
||||||
def scanDeadTracks(self):
|
|
||||||
self.model.scan_dead_tracks()
|
|
||||||
|
|
||||||
#---Properties
|
|
||||||
def setMinMatchPercentage_(self, percentage: int):
|
|
||||||
self.model.scanner.min_match_percentage = percentage
|
|
||||||
|
|
||||||
def setScanType_(self, scan_type: int):
|
|
||||||
try:
|
|
||||||
self.model.scanner.scan_type = [
|
|
||||||
ScanType.Filename,
|
|
||||||
ScanType.Fields,
|
|
||||||
ScanType.FieldsNoOrder,
|
|
||||||
ScanType.Tag,
|
|
||||||
ScanType.Contents,
|
|
||||||
ScanType.ContentsAudio,
|
|
||||||
][scan_type]
|
|
||||||
except IndexError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def setWordWeighting_(self, words_are_weighted: bool):
|
|
||||||
self.model.scanner.word_weighting = words_are_weighted
|
|
||||||
|
|
||||||
def setMatchSimilarWords_(self, match_similar_words: bool):
|
|
||||||
self.model.scanner.match_similar_words = match_similar_words
|
|
||||||
|
|
||||||
def enable_scanForTag_(self, enable: bool, scan_tag: str):
|
|
||||||
if enable:
|
|
||||||
self.model.scanner.scanned_tags.add(scan_tag)
|
|
||||||
else:
|
|
||||||
self.model.scanner.scanned_tags.discard(scan_tag)
|
|
@ -1,233 +0,0 @@
|
|||||||
# Created By: Virgil Dupras
|
|
||||||
# Created On: 2006/11/13
|
|
||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
# which should be included with this package. The terms are also available at
|
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
|
|
||||||
import os.path as op
|
|
||||||
import plistlib
|
|
||||||
import logging
|
|
||||||
import re
|
|
||||||
|
|
||||||
from appscript import app, its, CommandError, ApplicationNotFoundError
|
|
||||||
|
|
||||||
from hscommon import io
|
|
||||||
from hscommon.util import remove_invalid_xml
|
|
||||||
from hscommon.path import Path
|
|
||||||
from hscommon.trans import trget
|
|
||||||
from cocoa import proxy
|
|
||||||
|
|
||||||
from core.scanner import ScanType
|
|
||||||
from core import directories
|
|
||||||
from core_pe import _block_osx
|
|
||||||
from core_pe.photo import Photo as PhotoBase
|
|
||||||
from core_pe.app import DupeGuru as DupeGuruBase
|
|
||||||
from .app import PyDupeGuruBase
|
|
||||||
|
|
||||||
tr = trget('ui')
|
|
||||||
|
|
||||||
IPHOTO_PATH = Path('iPhoto Library')
|
|
||||||
|
|
||||||
class Photo(PhotoBase):
|
|
||||||
HANDLED_EXTS = PhotoBase.HANDLED_EXTS.copy()
|
|
||||||
HANDLED_EXTS.update({'psd', 'nef', 'cr2', 'orf'})
|
|
||||||
|
|
||||||
def _plat_get_dimensions(self):
|
|
||||||
return _block_osx.get_image_size(str(self.path))
|
|
||||||
|
|
||||||
def _plat_get_blocks(self, block_count_per_side, orientation):
|
|
||||||
try:
|
|
||||||
blocks = _block_osx.getblocks(str(self.path), block_count_per_side, orientation)
|
|
||||||
except Exception as e:
|
|
||||||
raise IOError('The reading of "%s" failed with "%s"' % (str(self.path), str(e)))
|
|
||||||
if not blocks:
|
|
||||||
raise IOError('The picture %s could not be read' % str(self.path))
|
|
||||||
return blocks
|
|
||||||
|
|
||||||
|
|
||||||
class IPhoto(Photo):
|
|
||||||
@property
|
|
||||||
def display_folder_path(self):
|
|
||||||
return IPHOTO_PATH
|
|
||||||
|
|
||||||
def get_iphoto_database_path():
|
|
||||||
plisturls = proxy.prefValue_inDomain_('iPhotoRecentDatabases', 'com.apple.iApps')
|
|
||||||
if not plisturls:
|
|
||||||
raise directories.InvalidPathError()
|
|
||||||
plistpath = proxy.url2path_(plisturls[0])
|
|
||||||
return Path(plistpath)
|
|
||||||
|
|
||||||
def get_iphoto_pictures(plistpath):
|
|
||||||
if not io.exists(plistpath):
|
|
||||||
return []
|
|
||||||
s = io.open(plistpath, 'rt', encoding='utf-8').read()
|
|
||||||
# There was a case where a guy had 0x10 chars in his plist, causing expat errors on loading
|
|
||||||
s = remove_invalid_xml(s, replace_with='')
|
|
||||||
# It seems that iPhoto sometimes doesn't properly escape & chars. The regexp below is to find
|
|
||||||
# any & char that is not a &-based entity (&, ", etc.). based on TextMate's XML
|
|
||||||
# bundle's regexp
|
|
||||||
s, count = re.subn(r'&(?![a-zA-Z0-9_-]+|#[0-9]+|#x[0-9a-fA-F]+;)', '', s)
|
|
||||||
if count:
|
|
||||||
logging.warning("%d invalid XML entities replacement made", count)
|
|
||||||
plist = plistlib.readPlistFromBytes(s.encode('utf-8'))
|
|
||||||
result = []
|
|
||||||
for photo_data in plist['Master Image List'].values():
|
|
||||||
if photo_data['MediaType'] != 'Image':
|
|
||||||
continue
|
|
||||||
photo_path = Path(photo_data['ImagePath'])
|
|
||||||
photo = IPhoto(photo_path)
|
|
||||||
result.append(photo)
|
|
||||||
return result
|
|
||||||
|
|
||||||
class Directories(directories.Directories):
|
|
||||||
def __init__(self):
|
|
||||||
directories.Directories.__init__(self, fileclasses=[Photo])
|
|
||||||
try:
|
|
||||||
self.iphoto_libpath = get_iphoto_database_path()
|
|
||||||
self.set_state(self.iphoto_libpath[:-1], directories.DirectoryState.Excluded)
|
|
||||||
except directories.InvalidPathError:
|
|
||||||
self.iphoto_libpath = None
|
|
||||||
|
|
||||||
def _get_files(self, from_path, j):
|
|
||||||
if from_path == IPHOTO_PATH:
|
|
||||||
if self.iphoto_libpath is None:
|
|
||||||
return []
|
|
||||||
is_ref = self.get_state(from_path) == directories.DirectoryState.Reference
|
|
||||||
photos = get_iphoto_pictures(self.iphoto_libpath)
|
|
||||||
for photo in photos:
|
|
||||||
photo.is_ref = is_ref
|
|
||||||
return photos
|
|
||||||
else:
|
|
||||||
return directories.Directories._get_files(self, from_path, j)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def get_subfolders(path):
|
|
||||||
if path == IPHOTO_PATH:
|
|
||||||
return []
|
|
||||||
else:
|
|
||||||
return directories.Directories.get_subfolders(path)
|
|
||||||
|
|
||||||
def add_path(self, path):
|
|
||||||
if path == IPHOTO_PATH:
|
|
||||||
if path not in self:
|
|
||||||
self._dirs.append(path)
|
|
||||||
else:
|
|
||||||
directories.Directories.add_path(self, path)
|
|
||||||
|
|
||||||
def has_iphoto_path(self):
|
|
||||||
return any(path == IPHOTO_PATH for path in self._dirs)
|
|
||||||
|
|
||||||
def has_any_file(self):
|
|
||||||
# If we don't do that, it causes a hangup in the GUI when we click Start Scanning because
|
|
||||||
# checking if there's any file to scan involves reading the whole library. If we have the
|
|
||||||
# iPhoto library, we assume we have at least one file.
|
|
||||||
if self.has_iphoto_path():
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return directories.Directories.has_any_file(self)
|
|
||||||
|
|
||||||
|
|
||||||
class DupeGuruPE(DupeGuruBase):
|
|
||||||
def __init__(self, view, appdata):
|
|
||||||
appdata = op.join(appdata, 'dupeGuru Picture Edition')
|
|
||||||
DupeGuruBase.__init__(self, view, appdata)
|
|
||||||
self.directories = Directories()
|
|
||||||
|
|
||||||
def _do_delete(self, j, replace_with_hardlinks):
|
|
||||||
def op(dupe):
|
|
||||||
j.add_progress()
|
|
||||||
return self._do_delete_dupe(dupe, replace_with_hardlinks)
|
|
||||||
|
|
||||||
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
|
||||||
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
|
||||||
if any(isinstance(dupe, IPhoto) for dupe in marked):
|
|
||||||
j.add_progress(0, desc=tr("Talking to iPhoto. Don't touch it!"))
|
|
||||||
try:
|
|
||||||
a = app('iPhoto')
|
|
||||||
a.activate(timeout=0)
|
|
||||||
a.select(a.photo_library_album(timeout=0), timeout=0)
|
|
||||||
except (CommandError, RuntimeError, ApplicationNotFoundError):
|
|
||||||
pass
|
|
||||||
self.results.perform_on_marked(op, True)
|
|
||||||
|
|
||||||
def _do_delete_dupe(self, dupe, replace_with_hardlinks):
|
|
||||||
if isinstance(dupe, IPhoto):
|
|
||||||
try:
|
|
||||||
a = app('iPhoto')
|
|
||||||
album = a.photo_library_album()
|
|
||||||
if album is None:
|
|
||||||
msg = "There are communication problems with iPhoto. Try opening iPhoto first, it might solve it."
|
|
||||||
raise EnvironmentError(msg)
|
|
||||||
[photo] = album.photos[its.image_path == str(dupe.path)]()
|
|
||||||
a.remove(photo, timeout=0)
|
|
||||||
except ValueError:
|
|
||||||
msg = "Could not find photo '{}' in iPhoto Library".format(str(dupe.path))
|
|
||||||
raise EnvironmentError(msg)
|
|
||||||
except (CommandError, RuntimeError) as e:
|
|
||||||
raise EnvironmentError(str(e))
|
|
||||||
else:
|
|
||||||
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks)
|
|
||||||
|
|
||||||
def _create_file(self, path):
|
|
||||||
if (self.directories.iphoto_libpath is not None) and (path in self.directories.iphoto_libpath[:-1]):
|
|
||||||
return IPhoto(path)
|
|
||||||
return DupeGuruBase._create_file(self, path)
|
|
||||||
|
|
||||||
def copy_or_move(self, dupe, copy, destination, dest_type):
|
|
||||||
if isinstance(dupe, IPhoto):
|
|
||||||
copy = True
|
|
||||||
return DupeGuruBase.copy_or_move(self, dupe, copy, destination, dest_type)
|
|
||||||
|
|
||||||
def selected_dupe_path(self):
|
|
||||||
if not self.selected_dupes:
|
|
||||||
return None
|
|
||||||
return self.selected_dupes[0].path
|
|
||||||
|
|
||||||
def selected_dupe_ref_path(self):
|
|
||||||
if not self.selected_dupes:
|
|
||||||
return None
|
|
||||||
ref = self.results.get_group_of_duplicate(self.selected_dupes[0]).ref
|
|
||||||
if ref is self.selected_dupes[0]: # we don't want the same pic to be displayed on both sides
|
|
||||||
return None
|
|
||||||
return ref.path
|
|
||||||
|
|
||||||
def start_scanning(self):
|
|
||||||
if self.directories.has_iphoto_path():
|
|
||||||
try:
|
|
||||||
app('iPhoto')
|
|
||||||
except ApplicationNotFoundError:
|
|
||||||
self.view.show_message(tr("The iPhoto application couldn't be found."))
|
|
||||||
return
|
|
||||||
DupeGuruBase.start_scanning(self)
|
|
||||||
|
|
||||||
class PyDupeGuru(PyDupeGuruBase):
|
|
||||||
def __init__(self):
|
|
||||||
self._init(DupeGuruPE)
|
|
||||||
|
|
||||||
def clearPictureCache(self):
|
|
||||||
self.model.scanner.clear_picture_cache()
|
|
||||||
|
|
||||||
#---Information
|
|
||||||
def getSelectedDupePath(self) -> str:
|
|
||||||
return str(self.model.selected_dupe_path())
|
|
||||||
|
|
||||||
def getSelectedDupeRefPath(self) -> str:
|
|
||||||
return str(self.model.selected_dupe_ref_path())
|
|
||||||
|
|
||||||
#---Properties
|
|
||||||
def setScanType_(self, scan_type: int):
|
|
||||||
try:
|
|
||||||
self.model.scanner.scan_type = [
|
|
||||||
ScanType.FuzzyBlock,
|
|
||||||
ScanType.ExifTimestamp,
|
|
||||||
][scan_type]
|
|
||||||
except IndexError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def setMatchScaled_(self, match_scaled: bool):
|
|
||||||
self.model.scanner.match_scaled = match_scaled
|
|
||||||
|
|
||||||
def setMinMatchPercentage_(self, percentage: int):
|
|
||||||
self.model.scanner.threshold = percentage
|
|
@ -1,102 +0,0 @@
|
|||||||
# Created By: Virgil Dupras
|
|
||||||
# Created On: 2009-05-24
|
|
||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
# which should be included with this package. The terms are also available at
|
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
|
|
||||||
import logging
|
|
||||||
import os.path as op
|
|
||||||
|
|
||||||
from hscommon import io
|
|
||||||
from hscommon.path import Path
|
|
||||||
from cocoa import proxy
|
|
||||||
|
|
||||||
from core.scanner import ScanType
|
|
||||||
from core import fs
|
|
||||||
from core.directories import Directories as DirectoriesBase, DirectoryState
|
|
||||||
from core_se.app import DupeGuru as DupeGuruBase
|
|
||||||
from .app import PyDupeGuruBase
|
|
||||||
|
|
||||||
def is_bundle(str_path):
|
|
||||||
uti = proxy.getUTI_(str_path)
|
|
||||||
if uti is None:
|
|
||||||
logging.warning('There was an error trying to detect the UTI of %s', str_path)
|
|
||||||
return proxy.type_conformsToType_(uti, 'com.apple.bundle') or proxy.type_conformsToType_(uti, 'com.apple.package')
|
|
||||||
|
|
||||||
class Bundle(fs.Folder):
|
|
||||||
@classmethod
|
|
||||||
def can_handle(cls, path):
|
|
||||||
return not io.islink(path) and io.isdir(path) and is_bundle(str(path))
|
|
||||||
|
|
||||||
|
|
||||||
class Directories(DirectoriesBase):
|
|
||||||
ROOT_PATH_TO_EXCLUDE = list(map(Path, ['/Library', '/Volumes', '/System', '/bin', '/sbin', '/opt', '/private', '/dev']))
|
|
||||||
HOME_PATH_TO_EXCLUDE = [Path('Library')]
|
|
||||||
def __init__(self):
|
|
||||||
DirectoriesBase.__init__(self, fileclasses=[Bundle, fs.File])
|
|
||||||
|
|
||||||
def _default_state_for_path(self, path):
|
|
||||||
result = DirectoriesBase._default_state_for_path(self, path)
|
|
||||||
if result is not None:
|
|
||||||
return result
|
|
||||||
if path in self.ROOT_PATH_TO_EXCLUDE:
|
|
||||||
return DirectoryState.Excluded
|
|
||||||
if path[:2] == Path('/Users') and path[3:] in self.HOME_PATH_TO_EXCLUDE:
|
|
||||||
return DirectoryState.Excluded
|
|
||||||
|
|
||||||
def _get_folders(self, from_folder, j):
|
|
||||||
# We don't want to scan bundle's subfolder even in Folders mode. Bundle's integrity has to
|
|
||||||
# stay intact.
|
|
||||||
if is_bundle(str(from_folder.path)):
|
|
||||||
# just yield the current folder and bail
|
|
||||||
state = self.get_state(from_folder.path)
|
|
||||||
if state != DirectoryState.Excluded:
|
|
||||||
from_folder.is_ref = state == DirectoryState.Reference
|
|
||||||
yield from_folder
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
for folder in DirectoriesBase._get_folders(self, from_folder, j):
|
|
||||||
yield folder
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def get_subfolders(path):
|
|
||||||
result = DirectoriesBase.get_subfolders(path)
|
|
||||||
return [p for p in result if not is_bundle(str(p))]
|
|
||||||
|
|
||||||
|
|
||||||
class DupeGuru(DupeGuruBase):
|
|
||||||
def __init__(self, view, appdata):
|
|
||||||
appdata = op.join(appdata, 'dupeGuru')
|
|
||||||
DupeGuruBase.__init__(self, view, appdata)
|
|
||||||
self.directories = Directories()
|
|
||||||
|
|
||||||
|
|
||||||
class PyDupeGuru(PyDupeGuruBase):
|
|
||||||
def __init__(self):
|
|
||||||
self._init(DupeGuru)
|
|
||||||
|
|
||||||
#---Properties
|
|
||||||
def setMinMatchPercentage_(self, percentage: int):
|
|
||||||
self.model.scanner.min_match_percentage = int(percentage)
|
|
||||||
|
|
||||||
def setScanType_(self, scan_type: int):
|
|
||||||
try:
|
|
||||||
self.model.scanner.scan_type = [
|
|
||||||
ScanType.Filename,
|
|
||||||
ScanType.Contents,
|
|
||||||
ScanType.Folders,
|
|
||||||
][scan_type]
|
|
||||||
except IndexError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def setWordWeighting_(self, words_are_weighted: bool):
|
|
||||||
self.model.scanner.word_weighting = words_are_weighted
|
|
||||||
|
|
||||||
def setMatchSimilarWords_(self, match_similar_words: bool):
|
|
||||||
self.model.scanner.match_similar_words = match_similar_words
|
|
||||||
|
|
||||||
def setSizeThreshold_(self, size_threshold: int):
|
|
||||||
self.model.scanner.size_threshold = size_threshold
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
# Created On: 2012-05-30
|
|
||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
# which should be included with this package. The terms are also available at
|
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
|
|
||||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
||||||
|
|
||||||
class DeletionOptionsView(GUIObjectView):
|
|
||||||
def updateMsg_(self, msg: str): pass
|
|
||||||
def show(self) -> bool: pass
|
|
||||||
|
|
||||||
class PyDeletionOptions(PyGUIObject):
|
|
||||||
def setHardlink_(self, hardlink: bool):
|
|
||||||
self.model.hardlink = hardlink
|
|
||||||
|
|
||||||
def setDirect_(self, direct: bool):
|
|
||||||
self.model.direct = direct
|
|
||||||
|
|
||||||
#--- model --> view
|
|
||||||
def update_msg(self, msg):
|
|
||||||
self.callback.updateMsg_(msg)
|
|
||||||
|
|
||||||
def show(self):
|
|
||||||
return self.callback.show()
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
||||||
|
|
||||||
class DetailsPanelView(GUIObjectView):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PyDetailsPanel(PyGUIObject):
|
|
||||||
def numberOfRows(self) -> int:
|
|
||||||
return self.model.row_count()
|
|
||||||
|
|
||||||
def valueForColumn_row_(self, column: str, row: int) -> object:
|
|
||||||
return self.model.row(row)[int(column)]
|
|
@ -1,18 +0,0 @@
|
|||||||
from objp.util import dontwrap
|
|
||||||
from cocoa.inter import PyOutline, GUIObjectView
|
|
||||||
|
|
||||||
class DirectoryOutlineView(GUIObjectView):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PyDirectoryOutline(PyOutline):
|
|
||||||
def addDirectory_(self, path: str):
|
|
||||||
self.model.add_directory(path)
|
|
||||||
|
|
||||||
def removeSelectedDirectory(self):
|
|
||||||
self.model.remove_selected()
|
|
||||||
|
|
||||||
# python --> cocoa
|
|
||||||
@dontwrap
|
|
||||||
def refresh_states(self):
|
|
||||||
# Under cocoa, both refresh() and refresh_states() do the same thing.
|
|
||||||
self.callback.refresh()
|
|
@ -1,20 +0,0 @@
|
|||||||
from objp.util import pyref
|
|
||||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
||||||
|
|
||||||
class IgnoreListDialogView(GUIObjectView):
|
|
||||||
def show(self): pass
|
|
||||||
|
|
||||||
class PyIgnoreListDialog(PyGUIObject):
|
|
||||||
def ignoreListTable(self) -> pyref:
|
|
||||||
return self.model.ignore_list_table
|
|
||||||
|
|
||||||
def removeSelected(self):
|
|
||||||
self.model.remove_selected()
|
|
||||||
|
|
||||||
def clear(self):
|
|
||||||
self.model.clear()
|
|
||||||
|
|
||||||
#--- model --> view
|
|
||||||
def show(self):
|
|
||||||
self.callback.show()
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
from objp.util import pyref
|
|
||||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
||||||
from core.gui.prioritize_dialog import PrioritizeDialog
|
|
||||||
|
|
||||||
class PrioritizeDialogView(GUIObjectView):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PyPrioritizeDialog(PyGUIObject):
|
|
||||||
def __init__(self, app: pyref):
|
|
||||||
model = PrioritizeDialog(app.model)
|
|
||||||
PyGUIObject.__init__(self, model)
|
|
||||||
|
|
||||||
def categoryList(self) -> pyref:
|
|
||||||
return self.model.category_list
|
|
||||||
|
|
||||||
def criteriaList(self) -> pyref:
|
|
||||||
return self.model.criteria_list
|
|
||||||
|
|
||||||
def prioritizationList(self) -> pyref:
|
|
||||||
return self.model.prioritization_list
|
|
||||||
|
|
||||||
def addSelected(self):
|
|
||||||
self.model.add_selected()
|
|
||||||
|
|
||||||
def removeSelected(self):
|
|
||||||
self.model.remove_selected()
|
|
||||||
|
|
||||||
def performReprioritization(self):
|
|
||||||
self.model.perform_reprioritization()
|
|
@ -1,8 +0,0 @@
|
|||||||
from cocoa.inter import PySelectableList, SelectableListView
|
|
||||||
|
|
||||||
class PrioritizeListView(SelectableListView):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PyPrioritizeList(PySelectableList):
|
|
||||||
def moveIndexes_toIndex_(self, indexes: list, dest_index: int):
|
|
||||||
self.model.move_indexes(indexes, dest_index)
|
|
@ -1,9 +0,0 @@
|
|||||||
from objp.util import pyref
|
|
||||||
from cocoa.inter import PyGUIObject
|
|
||||||
|
|
||||||
class PyProblemDialog(PyGUIObject):
|
|
||||||
def problemTable(self) -> pyref:
|
|
||||||
return self.model.problem_table
|
|
||||||
|
|
||||||
def revealSelected(self):
|
|
||||||
self.model.reveal_selected_dupe()
|
|
@ -1,49 +0,0 @@
|
|||||||
from objp.util import dontwrap
|
|
||||||
from cocoa.inter import PyTable, TableView
|
|
||||||
|
|
||||||
class ResultTableView(TableView):
|
|
||||||
def invalidateMarkings(self): pass
|
|
||||||
|
|
||||||
class PyResultTable(PyTable):
|
|
||||||
def powerMarkerMode(self) -> bool:
|
|
||||||
return self.model.power_marker
|
|
||||||
|
|
||||||
def setPowerMarkerMode_(self, value: bool):
|
|
||||||
self.model.power_marker = value
|
|
||||||
|
|
||||||
def deltaValuesMode(self) -> bool:
|
|
||||||
return self.model.delta_values
|
|
||||||
|
|
||||||
def setDeltaValuesMode_(self, value: bool):
|
|
||||||
self.model.delta_values = value
|
|
||||||
|
|
||||||
def deltaColumns(self) -> list:
|
|
||||||
return list(self.model.DELTA_COLUMNS)
|
|
||||||
|
|
||||||
def valueForRow_column_(self, row_index: int, column: str) -> object:
|
|
||||||
return self.model.get_row_value(row_index, column)
|
|
||||||
|
|
||||||
def renameSelected_(self, newname: str) -> bool:
|
|
||||||
return self.model.rename_selected(newname)
|
|
||||||
|
|
||||||
def sortBy_ascending_(self, key: str, asc: bool):
|
|
||||||
self.model.sort(key, asc)
|
|
||||||
|
|
||||||
def markSelected(self):
|
|
||||||
self.model.app.toggle_selected_mark_state()
|
|
||||||
|
|
||||||
def removeSelected(self):
|
|
||||||
self.model.app.remove_selected()
|
|
||||||
|
|
||||||
def selectedDupeCount(self) -> int:
|
|
||||||
return self.model.selected_dupe_count
|
|
||||||
|
|
||||||
def pathAtIndex_(self, index: int) -> str:
|
|
||||||
row = self.model[index]
|
|
||||||
return str(row._dupe.path)
|
|
||||||
|
|
||||||
# python --> cocoa
|
|
||||||
@dontwrap
|
|
||||||
def invalidate_markings(self):
|
|
||||||
self.callback.invalidateMarkings()
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
||||||
|
|
||||||
class StatsLabelView(GUIObjectView):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PyStatsLabel(PyGUIObject):
|
|
||||||
|
|
||||||
def display(self) -> str:
|
|
||||||
return self.model.display
|
|
@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "../base/AppDelegate.h"
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
|
|
||||||
@interface AppDelegate : AppDelegateBase {}
|
|
||||||
@end
|
|
@ -1,86 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
#import "ProgressController.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "ValueTransformers.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "DetailsPanel.h"
|
|
||||||
#import "DirectoryPanel.h"
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
|
|
||||||
@implementation AppDelegate
|
|
||||||
+ (void)initialize
|
|
||||||
{
|
|
||||||
[super initialize];
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
NSMutableDictionary *d = [NSMutableDictionary dictionaryWithCapacity:10];
|
|
||||||
[d setObject:i2n(3) forKey:@"scanType"];
|
|
||||||
[d setObject:i2n(80) forKey:@"minMatchPercentage"];
|
|
||||||
[d setObject:i2n(1) forKey:@"recreatePathType"];
|
|
||||||
[d setObject:i2n(11) forKey:TableFontSize];
|
|
||||||
[d setObject:b2n(NO) forKey:@"wordWeighting"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"matchSimilarWords"];
|
|
||||||
[d setObject:b2n(YES) forKey:@"mixFileKind"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"useRegexpFilter"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"ignoreHardlinkMatches"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"removeEmptyFolders"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"debug"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"scanTagTrack"];
|
|
||||||
[d setObject:b2n(YES) forKey:@"scanTagArtist"];
|
|
||||||
[d setObject:b2n(YES) forKey:@"scanTagAlbum"];
|
|
||||||
[d setObject:b2n(YES) forKey:@"scanTagTitle"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"scanTagGenre"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"scanTagYear"];
|
|
||||||
[d setObject:[NSArray array] forKey:@"recentDirectories"];
|
|
||||||
[d setObject:[NSArray array] forKey:@"columnsOrder"];
|
|
||||||
[d setObject:[NSDictionary dictionary] forKey:@"columnsWidth"];
|
|
||||||
[[NSUserDefaultsController sharedUserDefaultsController] setInitialValues:d];
|
|
||||||
[ud registerDefaults:d];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id)init
|
|
||||||
{
|
|
||||||
self = [super init];
|
|
||||||
NSMutableIndexSet *i = [NSMutableIndexSet indexSetWithIndex:4];
|
|
||||||
[i addIndex:5];
|
|
||||||
VTIsIntIn *vtScanTypeIsNotContent = [[[VTIsIntIn alloc] initWithValues:i reverse:YES] autorelease];
|
|
||||||
[NSValueTransformer setValueTransformer:vtScanTypeIsNotContent forName:@"vtScanTypeIsNotContent"];
|
|
||||||
VTIsIntIn *vtScanTypeIsTag = [[[VTIsIntIn alloc] initWithValues:[NSIndexSet indexSetWithIndex:3] reverse:NO] autorelease];
|
|
||||||
[NSValueTransformer setValueTransformer:vtScanTypeIsTag forName:@"vtScanTypeIsTag"];
|
|
||||||
_directoryPanel = nil;
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)homepageURL
|
|
||||||
{
|
|
||||||
return @"http://www.hardcoded.net/dupeguru_me/";
|
|
||||||
}
|
|
||||||
|
|
||||||
- (ResultWindowBase *)createResultWindow
|
|
||||||
{
|
|
||||||
return [[ResultWindow alloc] initWithParentApp:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DirectoryPanel *)createDirectoryPanel
|
|
||||||
{
|
|
||||||
return [[DirectoryPanelME alloc] initWithParentApp:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
//Delegate
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
// index 3 is just after "Export Results to XHTML"
|
|
||||||
NSMenuItem *mi = [actionsMenu insertItemWithTitle:TR(@"Remove Dead Tracks in iTunes")
|
|
||||||
action:@selector(removeDeadTracks:) keyEquivalent:@"" atIndex:3];
|
|
||||||
[mi setTarget:[self resultWindow]];
|
|
||||||
[super applicationDidFinishLaunching:aNotification];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,11 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "../base/Consts.h"
|
|
||||||
|
|
||||||
#define jobScanDeadTracks @"jobScanDeadTracks"
|
|
@ -1,16 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "../base/DirectoryPanel.h"
|
|
||||||
|
|
||||||
@interface DirectoryPanelME : DirectoryPanel
|
|
||||||
{
|
|
||||||
}
|
|
||||||
- (IBAction)addiTunes:(id)sender;
|
|
||||||
@end
|
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "DirectoryPanel.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
|
|
||||||
@implementation DirectoryPanelME
|
|
||||||
- (id)initWithParentApp:(id)aParentApp
|
|
||||||
{
|
|
||||||
self = [super initWithParentApp:aParentApp];
|
|
||||||
_alwaysShowPopUp = YES;
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)fillPopUpMenu
|
|
||||||
{
|
|
||||||
[super fillPopUpMenu];
|
|
||||||
NSMenu *m = [addButtonPopUp menu];
|
|
||||||
NSMenuItem *mi = [m insertItemWithTitle:TR(@"Add iTunes Library") action:@selector(addiTunes:)
|
|
||||||
keyEquivalent:@"" atIndex:1];
|
|
||||||
[mi setTarget:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)addiTunes:(id)sender
|
|
||||||
{
|
|
||||||
[self addDirectory:@"iTunes Library"];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>English</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>${EXECUTABLE_NAME}</string>
|
|
||||||
<key>CFBundleHelpBookFolder</key>
|
|
||||||
<string>dupeguru_me_help</string>
|
|
||||||
<key>CFBundleHelpBookName</key>
|
|
||||||
<string>dupeGuru ME Help</string>
|
|
||||||
<key>CFBundleIconFile</key>
|
|
||||||
<string>dupeguru</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>com.hardcoded-software.dupeguru-me</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>${PRODUCT_NAME}</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>APPL</string>
|
|
||||||
<key>CFBundleSignature</key>
|
|
||||||
<string>hsft</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>{version}</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>{version}</string>
|
|
||||||
<key>NSMainNibFile</key>
|
|
||||||
<string>MainMenu</string>
|
|
||||||
<key>NSPrincipalClass</key>
|
|
||||||
<string>NSApplication</string>
|
|
||||||
<key>NSHumanReadableCopyright</key>
|
|
||||||
<string>© Hardcoded Software, 2012</string>
|
|
||||||
<key>SUFeedURL</key>
|
|
||||||
<string>http://www.hardcoded.net/updates/dupeguru_me.appcast</string>
|
|
||||||
<key>SUPublicDSAKeyFile</key>
|
|
||||||
<string>dsa_pub.pem</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
@ -1,14 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "../base/ResultWindow.h"
|
|
||||||
|
|
||||||
@interface ResultWindow : ResultWindowBase {}
|
|
||||||
- (IBAction)removeDeadTracks:(id)sender;
|
|
||||||
@end
|
|
@ -1,77 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
#import "Dialogs.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "PyDupeGuru.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
#import "ProgressController.h"
|
|
||||||
|
|
||||||
@implementation ResultWindow
|
|
||||||
/* Override */
|
|
||||||
- (void)setScanOptions
|
|
||||||
{
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
[model setScanType:n2i([ud objectForKey:@"scanType"])];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagTrack"]) scanForTag:@"track"];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagArtist"]) scanForTag:@"artist"];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagAlbum"]) scanForTag:@"album"];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagTitle"]) scanForTag:@"title"];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagGenre"]) scanForTag:@"genre"];
|
|
||||||
[model enable:n2b([ud objectForKey:@"scanTagYear"]) scanForTag:@"year"];
|
|
||||||
[model setMinMatchPercentage:n2i([ud objectForKey:@"minMatchPercentage"])];
|
|
||||||
[model setWordWeighting:n2b([ud objectForKey:@"wordWeighting"])];
|
|
||||||
[model setMixFileKind:n2b([ud objectForKey:@"mixFileKind"])];
|
|
||||||
[model setIgnoreHardlinkMatches:n2b([ud objectForKey:@"ignoreHardlinkMatches"])];
|
|
||||||
[model setMatchSimilarWords:n2b([ud objectForKey:@"matchSimilarWords"])];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)initResultColumns
|
|
||||||
{
|
|
||||||
HSColumnDef defs[] = {
|
|
||||||
{@"marked", 26, 26, 26, YES, [NSButtonCell class]},
|
|
||||||
{@"name", 235, 16, 0, YES, nil},
|
|
||||||
{@"folder_path", 120, 16, 0, YES, nil},
|
|
||||||
{@"size", 63, 16, 0, YES, nil},
|
|
||||||
{@"duration", 50, 16, 0, YES, nil},
|
|
||||||
{@"bitrate", 50, 16, 0, YES, nil},
|
|
||||||
{@"samplerate", 60, 16, 0, YES, nil},
|
|
||||||
{@"extension", 40, 16, 0, YES, nil},
|
|
||||||
{@"mtime", 120, 16, 0, YES, nil},
|
|
||||||
{@"title", 120, 16, 0, YES, nil},
|
|
||||||
{@"artist", 120, 16, 0, YES, nil},
|
|
||||||
{@"album", 120, 16, 0, YES, nil},
|
|
||||||
{@"genre", 80, 16, 0, YES, nil},
|
|
||||||
{@"year", 40, 16, 0, YES, nil},
|
|
||||||
{@"track", 40, 16, 0, YES, nil},
|
|
||||||
{@"comment", 120, 16, 0, YES, nil},
|
|
||||||
{@"percentage", 57, 16, 0, YES, nil},
|
|
||||||
{@"words", 120, 16, 0, YES, nil},
|
|
||||||
{@"dupe_count", 80, 16, 0, YES, nil},
|
|
||||||
nil
|
|
||||||
};
|
|
||||||
[[table columns] initializeColumns:defs];
|
|
||||||
NSTableColumn *c = [matches tableColumnWithIdentifier:@"marked"];
|
|
||||||
[[c dataCell] setButtonType:NSSwitchButton];
|
|
||||||
[[c dataCell] setControlSize:NSSmallControlSize];
|
|
||||||
c = [matches tableColumnWithIdentifier:@"size"];
|
|
||||||
[[c dataCell] setAlignment:NSRightTextAlignment];
|
|
||||||
c = [matches tableColumnWithIdentifier:@"duration"];
|
|
||||||
[[c dataCell] setAlignment:NSRightTextAlignment];
|
|
||||||
c = [matches tableColumnWithIdentifier:@"bitrate"];
|
|
||||||
[[c dataCell] setAlignment:NSRightTextAlignment];
|
|
||||||
[[table columns] restoreColumns];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
- (IBAction)removeDeadTracks:(id)sender
|
|
||||||
{
|
|
||||||
[model scanDeadTracks];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,13 +0,0 @@
|
|||||||
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
# which should be included with this package. The terms are also available at
|
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
|
|
||||||
from hscommon.trans import install_gettext_trans_under_cocoa
|
|
||||||
install_gettext_trans_under_cocoa()
|
|
||||||
|
|
||||||
from cocoa.inter import PySelectableList, PyColumns, PyTable
|
|
||||||
|
|
||||||
from inter.all import *
|
|
||||||
from inter.app_me import PyDupeGuru
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:dupeguru.xcodeproj">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
@ -1,105 +0,0 @@
|
|||||||
|
|
||||||
/* Class = "NSWindow"; title = "dupeGuru ME Preferences"; ObjectID = "2"; */
|
|
||||||
"2.title" = "dupeGuru ME Preferences";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "More results"; ObjectID = "29"; */
|
|
||||||
"29.title" = "More results";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Fewer results"; ObjectID = "30"; */
|
|
||||||
"30.title" = "Fewer results";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Filter hardness:"; ObjectID = "31"; */
|
|
||||||
"31.title" = "Filter hardness:";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Scan type:"; ObjectID = "32"; */
|
|
||||||
"32.title" = "Scan type:";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Content"; ObjectID = "35"; */
|
|
||||||
"35.title" = "Content";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Filename"; ObjectID = "36"; */
|
|
||||||
"36.title" = "Filename";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Filename - Fields"; ObjectID = "37"; */
|
|
||||||
"37.title" = "Filename - Fields";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Tags"; ObjectID = "38"; */
|
|
||||||
"38.title" = "Tags";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Audio Content"; ObjectID = "39"; */
|
|
||||||
"39.title" = "Audio Content";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Filename - Fields (No Order)"; ObjectID = "40"; */
|
|
||||||
"40.title" = "Filename - Fields (No Order)";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Word weighting"; ObjectID = "41"; */
|
|
||||||
"41.title" = "Word weighting";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Can mix file kind"; ObjectID = "42"; */
|
|
||||||
"42.title" = "Can mix file kind";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Reset to Defaults"; ObjectID = "45"; */
|
|
||||||
"45.title" = "Reset to Defaults";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Match similar words"; ObjectID = "46"; */
|
|
||||||
"46.title" = "Match similar words";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Copy and Move:"; ObjectID = "54"; */
|
|
||||||
"54.title" = "Copy and Move:";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Recreate relative path"; ObjectID = "57"; */
|
|
||||||
"57.title" = "Recreate relative path";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Recreate absolute path"; ObjectID = "58"; */
|
|
||||||
"58.title" = "Recreate absolute path";
|
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Right in destination"; ObjectID = "59"; */
|
|
||||||
"59.title" = "Right in destination";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Automatically check for updates"; ObjectID = "60"; */
|
|
||||||
"60.title" = "Automatically check for updates";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Use regular expressions when filtering"; ObjectID = "61"; */
|
|
||||||
"61.title" = "Use regular expressions when filtering";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Remove empty folders after delete and move"; ObjectID = "62"; */
|
|
||||||
"62.title" = "Remove empty folders after delete and move";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Tags to scan:"; ObjectID = "63"; */
|
|
||||||
"63.title" = "Tags to scan:";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Track"; ObjectID = "64"; */
|
|
||||||
"64.title" = "Track";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Artist"; ObjectID = "65"; */
|
|
||||||
"65.title" = "Artist";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Album"; ObjectID = "66"; */
|
|
||||||
"66.title" = "Album";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Title"; ObjectID = "67"; */
|
|
||||||
"67.title" = "Title";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Genre"; ObjectID = "68"; */
|
|
||||||
"68.title" = "Genre";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Year"; ObjectID = "69"; */
|
|
||||||
"69.title" = "Year";
|
|
||||||
|
|
||||||
/* Class = "NSTabViewItem"; label = "Basic"; ObjectID = "116"; */
|
|
||||||
"116.label" = "Basic";
|
|
||||||
|
|
||||||
/* Class = "NSTabViewItem"; label = "Advanced"; ObjectID = "117"; */
|
|
||||||
"117.label" = "Advanced";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Custom Command (arguments: %d for dupe, %r for ref):"; ObjectID = "121"; */
|
|
||||||
"121.title" = "Custom Command (arguments: %d for dupe, %r for ref):";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Ignore duplicates hardlinking to the same file"; ObjectID = "126"; */
|
|
||||||
"126.title" = "Ignore duplicates hardlinking to the same file";
|
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Debug mode (restart required)"; ObjectID = "130"; */
|
|
||||||
"130.title" = "Debug mode (restart required)";
|
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Font size:"; ObjectID = "136"; */
|
|
||||||
"136.title" = "Font size:";
|
|
File diff suppressed because it is too large
Load Diff
@ -1,13 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "../base/AppDelegate.h"
|
|
||||||
|
|
||||||
@interface AppDelegate : AppDelegateBase {}
|
|
||||||
@end
|
|
@ -1,80 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
#import "ProgressController.h"
|
|
||||||
#import "Utils.h"
|
|
||||||
#import "ValueTransformers.h"
|
|
||||||
#import "Consts.h"
|
|
||||||
#import "DetailsPanel.h"
|
|
||||||
#import "DirectoryPanel.h"
|
|
||||||
#import "ResultWindow.h"
|
|
||||||
|
|
||||||
@implementation AppDelegate
|
|
||||||
+ (void)initialize
|
|
||||||
{
|
|
||||||
[super initialize];
|
|
||||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
|
||||||
NSMutableDictionary *d = [NSMutableDictionary dictionaryWithCapacity:10];
|
|
||||||
[d setObject:i2n(0) forKey:@"scanType"];
|
|
||||||
[d setObject:i2n(95) forKey:@"minMatchPercentage"];
|
|
||||||
[d setObject:i2n(1) forKey:@"recreatePathType"];
|
|
||||||
[d setObject:i2n(11) forKey:TableFontSize];
|
|
||||||
[d setObject:b2n(NO) forKey:@"matchScaled"];
|
|
||||||
[d setObject:b2n(YES) forKey:@"mixFileKind"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"useRegexpFilter"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"ignoreHardlinkMatches"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"removeEmptyFolders"];
|
|
||||||
[d setObject:b2n(NO) forKey:@"debug"];
|
|
||||||
[d setObject:[NSArray array] forKey:@"recentDirectories"];
|
|
||||||
[d setObject:[NSArray array] forKey:@"columnsOrder"];
|
|
||||||
[d setObject:[NSDictionary dictionary] forKey:@"columnsWidth"];
|
|
||||||
[[NSUserDefaultsController sharedUserDefaultsController] setInitialValues:d];
|
|
||||||
[ud registerDefaults:d];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id)init
|
|
||||||
{
|
|
||||||
self = [super init];
|
|
||||||
NSMutableIndexSet *i = [NSMutableIndexSet indexSetWithIndex:0];
|
|
||||||
VTIsIntIn *vtScanTypeIsFuzzy = [[[VTIsIntIn alloc] initWithValues:i reverse:NO] autorelease];
|
|
||||||
[NSValueTransformer setValueTransformer:vtScanTypeIsFuzzy forName:@"vtScanTypeIsFuzzy"];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)homepageURL
|
|
||||||
{
|
|
||||||
return @"http://www.hardcoded.net/dupeguru_pe/";
|
|
||||||
}
|
|
||||||
|
|
||||||
- (ResultWindowBase *)createResultWindow
|
|
||||||
{
|
|
||||||
return [[ResultWindow alloc] initWithParentApp:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DirectoryPanel *)createDirectoryPanel
|
|
||||||
{
|
|
||||||
return [[DirectoryPanelPE alloc] initWithParentApp:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (DetailsPanel *)createDetailsPanel
|
|
||||||
{
|
|
||||||
return [[DetailsPanelPE alloc] initWithApp:model];
|
|
||||||
}
|
|
||||||
|
|
||||||
//Delegate
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
|
||||||
{
|
|
||||||
// index 2 is just after "Clear Ingore List"
|
|
||||||
NSMenuItem *mi = [actionsMenu insertItemWithTitle:TR(@"Clear Picture Cache")
|
|
||||||
action:@selector(clearPictureCache:) keyEquivalent:@"P" atIndex:2];
|
|
||||||
[mi setTarget:[self resultWindow]];
|
|
||||||
[mi setKeyEquivalentModifierMask:NSCommandKeyMask|NSShiftKeyMask];
|
|
||||||
[super applicationDidFinishLaunching:aNotification];
|
|
||||||
}
|
|
||||||
@end
|
|
@ -1,11 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
|
|
||||||
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
||||||
which should be included with this package. The terms are also available at
|
|
||||||
http://www.hardcoded.net/licenses/bsd_license
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "../base/Consts.h"
|
|
||||||
|
|
||||||
#define ImageLoadedNotification @"ImageLoadedNotification"
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user