-
Notifications
You must be signed in to change notification settings - Fork 0
/
AF.frm
2253 lines (1937 loc) · 80.2 KB
/
AF.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form formTracker
Caption = "Tracker"
ClientHeight = 12360
ClientLeft = 1995
ClientTop = 990
ClientWidth = 16530
KeyPreview = -1 'True
LinkTopic = "formTracker"
ScaleHeight = 12360
ScaleWidth = 16530
StartUpPosition = 2 'CenterScreen
Begin VB.DriveListBox trackerDriveObj
Height = 315
Left = 17040
TabIndex = 50
Top = 840
Visible = 0 'False
Width = 5295
End
Begin VB.FileListBox trackerFileObj
Height = 2625
Left = 19560
TabIndex = 49
Top = 1200
Visible = 0 'False
Width = 2775
End
Begin VB.DirListBox trackerDirObj
Height = 2790
Left = 17040
TabIndex = 48
Top = 1200
Visible = 0 'False
Width = 2175
End
Begin VB.ListBox listAFDfilesForCabinets
Height = 1815
Left = 16920
TabIndex = 46
Top = 9240
Visible = 0 'False
Width = 2775
End
Begin VB.ListBox listAFDFoldersForCabinets
Height = 1815
Left = 19800
TabIndex = 45
Top = 9240
Visible = 0 'False
Width = 3015
End
Begin VB.ListBox listAFDfilesForChronicles
Height = 1815
Left = 16920
TabIndex = 44
Top = 7320
Visible = 0 'False
Width = 2775
End
Begin VB.ListBox listAFDfoldersForChronicles
Height = 1815
Left = 19800
TabIndex = 43
Top = 7320
Visible = 0 'False
Width = 3015
End
Begin VB.ListBox listAFDFoldersForDocuments
Height = 1815
Left = 19800
TabIndex = 42
Top = 5400
Visible = 0 'False
Width = 3015
End
Begin VB.ListBox listAFDfilesForDocuments
Height = 1815
Left = 16920
TabIndex = 41
Top = 5400
Visible = 0 'False
Width = 2775
End
Begin VB.Frame frameSearchBox
BorderStyle = 0 'None
Height = 345
Left = 360
TabIndex = 34
Top = 8040
Width = 14475
Begin VB.TextBox textSearchInDocuments
Appearance = 0 'Flat
Height = 285
Left = 1680
TabIndex = 40
Top = 0
Width = 2760
End
Begin VB.TextBox textSearchInChronicles
Appearance = 0 'Flat
Height = 285
Left = 6480
TabIndex = 39
Top = 0
Width = 3000
End
Begin VB.TextBox textSearchInCabinets
Appearance = 0 'Flat
Height = 285
Left = 11400
TabIndex = 38
Top = 0
Width = 3000
End
Begin VB.Label labelSearchInChronicles
Caption = "Search in Chronicles:"
Height = 210
Left = 4800
TabIndex = 37
Top = 0
Width = 1935
End
Begin VB.Label labelSearchInCabinets
Caption = "Search in Cabinets:"
Height = 210
Left = 9840
TabIndex = 36
Top = 0
Width = 2055
End
Begin VB.Label labelSearchInDocuments
Caption = "Search in Documents:"
Height = 210
Left = 0
TabIndex = 35
Top = 0
Width = 1935
End
End
Begin MSComctlLib.ListView listViewCabinets
Height = 5295
Left = 9600
TabIndex = 33
Top = 600
Width = 4695
_ExtentX = 8281
_ExtentY = 9340
View = 3
Arrange = 2
MultiSelect = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
OLEDropMode = 1
Checkboxes = -1 'True
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
Appearance = 1
OLEDropMode = 1
NumItems = 10
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Date"
Object.Width = 2187
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Source"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Status"
Object.Width = 2118
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Score"
Object.Width = 1147
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Title"
Object.Width = 13230
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "Author"
Object.Width = 3422
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "Year"
Object.Width = 1305
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Venue"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "Extension"
Object.Width = 1589
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 9
Text = "Path"
Object.Width = 4288
EndProperty
End
Begin MSComctlLib.ListView listViewChronicles
Height = 5295
Left = 4440
TabIndex = 32
Top = 600
Width = 5055
_ExtentX = 8916
_ExtentY = 9340
View = 3
Arrange = 2
MultiSelect = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
Checkboxes = -1 'True
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
Appearance = 1
NumItems = 10
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Date"
Object.Width = 2187
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Source"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Status"
Object.Width = 2118
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Score"
Object.Width = 1147
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Title"
Object.Width = 13230
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "Author"
Object.Width = 3422
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "Year"
Object.Width = 1305
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Venue"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "Extension"
Object.Width = 1589
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 9
Text = "Path"
Object.Width = 4288
EndProperty
End
Begin MSComctlLib.ListView ListViewDocuments
Height = 5295
Left = 360
TabIndex = 31
Top = 600
Width = 3975
_ExtentX = 7011
_ExtentY = 9340
View = 3
Arrange = 2
MultiSelect = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
Checkboxes = -1 'True
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
Appearance = 1
NumItems = 10
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Date"
Object.Width = 2187
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Source"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Status"
Object.Width = 2118
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Score"
Object.Width = 1147
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Title"
Object.Width = 11466
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "Author"
Object.Width = 3422
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "Year"
Object.Width = 1305
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Venue"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "Extension"
Object.Width = 1589
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 9
Text = "Path"
Object.Width = 4288
EndProperty
End
Begin MSComctlLib.ProgressBar progressBarUpdateList
Height = 165
Left = 14760
TabIndex = 29
Top = 5760
Width = 1575
_ExtentX = 2778
_ExtentY = 291
_Version = 393216
Appearance = 0
End
Begin VB.CommandButton cmdActiveFolders
Caption = "Active Folders"
Height = 375
Left = 14760
TabIndex = 30
Top = 2880
Width = 1575
End
Begin VB.CommandButton cmdUpdateList
Caption = "Update List"
Height = 492
Left = 14760
TabIndex = 9
Top = 5160
Width = 1575
End
Begin VB.Frame frameDetails
BorderStyle = 0 'None
Height = 3012
Left = 240
TabIndex = 10
Top = 8880
Width = 16095
Begin VB.TextBox textScore
Appearance = 0 'Flat
Height = 285
Left = 13560
TabIndex = 11
Top = 2160
Width = 2532
End
Begin VB.CommandButton cmdUpdateDetails
Caption = "Update Details"
Height = 495
Left = 12360
TabIndex = 20
Top = 2520
Width = 3735
End
Begin VB.OptionButton opt_abstract
Caption = "Abstract"
Height = 255
Left = 13560
TabIndex = 19
Top = 1920
Width = 1215
End
Begin VB.OptionButton opt_unreviewed
Caption = "Unreviewed"
Height = 255
Left = 13560
TabIndex = 18
Top = 1680
Width = 1212
End
Begin VB.OptionButton opt_skim
Caption = "Skim"
Height = 255
Left = 14760
TabIndex = 17
Top = 1680
Width = 855
End
Begin VB.TextBox textVenue
Appearance = 0 'Flat
Enabled = 0 'False
Height = 285
Left = 13560
TabIndex = 16
Top = 1320
Width = 2532
End
Begin VB.TextBox textYear
Appearance = 0 'Flat
Enabled = 0 'False
Height = 285
Left = 13560
TabIndex = 15
Top = 960
Width = 2532
End
Begin VB.TextBox textAuthor
Appearance = 0 'Flat
Enabled = 0 'False
Height = 285
Left = 13560
TabIndex = 14
Top = 600
Width = 2532
End
Begin VB.TextBox textTitle
Appearance = 0 'Flat
Enabled = 0 'False
Height = 492
Left = 13560
MultiLine = -1 'True
TabIndex = 13
Top = 0
Width = 2532
End
Begin VB.OptionButton opt_read
Caption = "Read"
Height = 255
Left = 14760
TabIndex = 12
Top = 1920
Width = 735
End
Begin VB.TextBox textDetails
Appearance = 0 'Flat
Height = 3015
Left = 0
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 27
Top = 0
Width = 12255
End
Begin VB.Label labelDetailsScore
Caption = "Score (0-100):"
Height = 255
Left = 12360
TabIndex = 26
Top = 2160
Width = 1095
End
Begin VB.Label labelDetailsVenue
Caption = "Venue:"
Height = 255
Left = 12360
TabIndex = 25
Top = 1320
Width = 975
End
Begin VB.Label labelDetailsYear
Caption = "Year:"
Height = 255
Left = 12360
TabIndex = 24
Top = 960
Width = 495
End
Begin VB.Label labelDetailsAuthor
Caption = "Author:"
Height = 255
Left = 12360
TabIndex = 23
Top = 600
Width = 975
WordWrap = -1 'True
End
Begin VB.Label labelDetailsTitle
Caption = "Title:"
Height = 255
Left = 12360
TabIndex = 22
Top = 0
Width = 1575
End
Begin VB.Label labelDetailsReview
Caption = "Review:"
Height = 255
Left = 12360
TabIndex = 21
Top = 1680
Width = 975
End
End
Begin VB.CommandButton cmdNewChronicle
Caption = "New Chronicle"
Height = 375
Left = 14760
TabIndex = 8
Top = 2400
Width = 1575
End
Begin VB.CommandButton cmdNewCabinet
Caption = "New Cabinet"
Height = 375
Left = 14760
TabIndex = 7
Top = 1440
Width = 1575
End
Begin VB.CommandButton cmdFileExport
Caption = "Export Checked File(s)"
Height = 555
Left = 14760
TabIndex = 5
Top = 3960
Width = 1545
End
Begin VB.CommandButton cmdFileDelete
Caption = "Delete Checked File(s)"
Height = 495
Left = 14760
TabIndex = 2
Top = 4560
Width = 1545
End
Begin VB.CommandButton cmdNewNote
Caption = "New Note"
Height = 375
Left = 14760
TabIndex = 3
Top = 1920
Width = 1575
End
Begin VB.CommandButton cmdNewDocument
Caption = "New Document"
Height = 375
Left = 14760
TabIndex = 1
Top = 480
Width = 1575
End
Begin VB.CommandButton cmdNewRecording
Caption = "New Recording"
Height = 375
Left = 14760
TabIndex = 4
Top = 960
Width = 1575
End
Begin MSComctlLib.TabStrip tabDetails
Height = 3495
Left = 100
TabIndex = 28
Top = 8500
Width = 16335
_ExtentX = 28813
_ExtentY = 6165
TabMinWidth = 706
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "Details"
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSComctlLib.TabStrip tabMain
Height = 8295
Left = 100
TabIndex = 6
Top = 120
Width = 16335
_ExtentX = 28813
_ExtentY = 14631
TabWidthStyle = 1
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 3
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "Documents"
ImageVarType = 2
EndProperty
BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "Chronicles"
ImageVarType = 2
EndProperty
BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "Cabinets"
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label labelStatus
Caption = "Status"
Height = 255
Left = 100
TabIndex = 47
Top = 12100
Width = 11295
End
Begin VB.Label labelCurrentDir
Height = 255
Left = 11520
TabIndex = 0
Top = 12100
Visible = 0 'False
Width = 4815
End
End
Attribute VB_Name = "formTracker"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*****************************************************************************************
' LICENSE INFORMATION
'*****************************************************************************************
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Copyright ©2010-2018 Alphan Sahin, All Rights Reserved.
' Some pages may also contain other copyrights by the author.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' FormControl Version 2.0
' Code module for resizing a form based on screen size, then resizing the
' controls based on the forms size
'
' Copyright (C) 2007
' Richard L. McCutchen
' Email: richard@psychocoder.net
' Created: AUG99
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Copyright ©1996-2011 VBnet/Randy Birch, All Rights Reserved.
' Some pages may also contain other copyrights by the author.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Distribution: You can freely use this code in your own
' applications, but you may not reproduce
' or publish this code on any web site,
' online service, or distribute as source
' on any media without express permission.
Private Const vbDot = 46
Private Const MAX_PATH As Long = 260
Private Const INVALID_HANDLE_VALUE = -1
Private Const vbBackslash = "\"
Private Const ALL_FILES = "*.*"
Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Private Type WIN32_FIND_DATA
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved0 As Long
dwReserved1 As Long
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type
Private Type FILE_PARAMS
bRecurse As Boolean
nCount As Long
nSearched As Long
sFileNameExt As String
sFileRoot As String
End Type
Private Declare Function FindClose Lib "kernel32" _
(ByVal hFindFile As Long) As Long
Private Declare Function FindFirstFile Lib "kernel32" _
Alias "FindFirstFileA" _
(ByVal lpFileName As String, _
lpFindFileData As WIN32_FIND_DATA) As Long
Private Declare Function FindNextFile Lib "kernel32" _
Alias "FindNextFileA" _
(ByVal hFindFile As Long, _
lpFindFileData As WIN32_FIND_DATA) As Long
Private Declare Function lstrlen Lib "kernel32" _
Alias "lstrlenW" (ByVal lpString As Long) As Long
Private Declare Function PathMatchSpec Lib "shlwapi" _
Alias "PathMatchSpecW" _
(ByVal pszFileParam As Long, _
ByVal pszSpec As Long) As Long
Private fp As FILE_PARAMS 'holds search parameters
Private Const BIF_RETURNONLYFSDIRS = 1
Private Const BIF_DONTGOBELOWDOMAIN = 2
Private Const BIF_NEWDIALOGSTYLE As Long = &H40
Private Declare Function SHBrowseForFolder Lib "shell32" _
(lpbi As BrowseInfo) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32" _
(ByVal pidList As Long, _
ByVal lpBuffer As String) As Long
Private Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" _
(ByVal lpString1 As String, ByVal _
lpString2 As String) As Long
Private Type BrowseInfo
hwndOwner As Long
pIDLRoot As Long
pszDisplayName As Long
lpszTitle As Long
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
End Type
Public strdoc, strcho, strsof, varTextDetailsChange
Public savepath, saveart_name, saveaut_name, saveart_date, savefile_type, savedate_format
Public another
Public IsAFDpathsForDocumentsUpdated, IsAFDpathsForChroniclesUpdated, IsAFDpathsForCabinetsUpdated
Private list() As Controlx
Private Type Controlx
Index As Integer
Name As String
Left As Integer
Top As Integer
width As Integer
height As Integer
iWidth As Integer
iHeight As Integer
End Type
Private Declare Function SetCurrentDirectory Lib "kernel32" _
Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long
Public Function DirName(loc As String)
For i = 1 To Len(loc)
dot_point = InStr(Len(loc) - i, loc, "\")
If dot_point = 0 Then
Else
DirName = Mid$(loc, dot_point + 1, Len(loc))
Exit Function
End If
Next i
End Function
Public Function TypeName(loc As String)
dot_point = InStr(1, StrReverse(loc), ".")
TypeName = Mid$(loc, Len(loc) - (dot_point - 2), Len(loc))
End Function
Public Function makedir(loc As String)
On Local Error GoTo Hata
MkDir (loc)
Hata:
End Function
Private Sub cmdNewDocument_Click()
Load formAddDocument
formAddDocument.Show
End Sub
Private Sub cmdNewCabinet_Click()
Load formAddCabinet
formAddCabinet.Show
End Sub
Private Sub cmdNewChronicle_Click()
Load formAddChronicles
formAddChronicles.Show
End Sub
Private Sub cmdActiveFolders_Click()
Load formActiveFolders
formActiveFolders.Show
End Sub
Private Sub cmdUpdateList_Click()
cmdUpdateList.Caption = "Wait..."
cmdUpdateList.Enabled = 0
cmdFileDelete.Enabled = 0
cmdFileExport.Enabled = 0
If (tabMain.SelectedItem.Index) = 1 Then
Call new_ordertree(True, False, False)
ElseIf (tabMain.SelectedItem.Index) = 2 Then
Call new_ordertree(False, True, False)
ElseIf (tabMain.SelectedItem.Index) = 3 Then
Call new_ordertree(False, False, True)
End If
cmdUpdateList.Enabled = 1
cmdFileDelete.Enabled = 1
cmdFileExport.Enabled = 1
cmdUpdateList.Caption = "Update List"
End Sub
Private Sub cmdFileDelete_Click()
cmdFileExport.Enabled = 0
cmdFileDelete.Enabled = 0
cmdUpdateList.Enabled = 0
cmdFileDelete.Caption = "Wait..."
Dim docc As Boolean
Dim chro As Boolean
Dim soft As Boolean
docc = False
chro = False
soft = False
labelStatus = "Status: Deleting document(s)..."
DoEvents
For i = ListViewDocuments.ListItems.Count To 1 Step -1
Set ListViewDocuments.SelectedItem = ListViewDocuments.ListItems(i)
If ListViewDocuments.SelectedItem.Checked = True Then
docc = True
IsAFDpathsForDocumentsUpdated = 0
date_format = ListViewDocuments.SelectedItem
art_name = ListViewDocuments.SelectedItem.ListSubItems(4)
aut_name = ListViewDocuments.SelectedItem.ListSubItems(5)
art_date = ListViewDocuments.SelectedItem.ListSubItems(6)
file_type = ListViewDocuments.SelectedItem.ListSubItems(8)
trackerDirObj.Path = ListViewDocuments.SelectedItem.ListSubItems(9)
trackerFileObj.Path = ListViewDocuments.SelectedItem.ListSubItems(9)
If trackerFileObj.ListCount = 2 Then
Kill ListViewDocuments.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "_" & file_type & ".afd"
Kill ListViewDocuments.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "." & file_type
RmDir removeLastCharacter(ListViewDocuments.SelectedItem.ListSubItems(9))
trackerDirObj.Path = labelCurrentDir & "\documents" & "\" & date_format
If trackerDirObj.ListCount = 0 Then
trackerDirObj.Path = labelCurrentDir & "\documents"
RmDir labelCurrentDir & "\documents" & "\" & date_format
trackerDirObj.Refresh
End If
Else
Kill ListViewDocuments.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "_" & file_type & ".afd"
Kill ListViewDocuments.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "." & file_type
trackerDirObj.Path = labelCurrentDir & "\documents\" & date_format
If trackerDirObj.ListCount = 0 Then
trackerDirObj.Path = labelCurrentDir & "\documents"
RmDir labelCurrentDir & "\documents" & "\" & date_format
trackerDirObj.Refresh
End If
End If
ListViewDocuments.ListItems.Remove ListViewDocuments.SelectedItem.Index
formTracker.IsAFDpathsForDocumentsUpdated = 0
End If
Next i
tabMain.Tabs(1).Caption = "Documents (" & ListViewDocuments.ListItems.Count & ")"
For i = listViewChronicles.ListItems.Count To 1 Step -1
Set listViewChronicles.SelectedItem = listViewChronicles.ListItems(i)
If listViewChronicles.SelectedItem.Checked = True Then
chro = True
IsAFDpathsForChroniclesUpdated = 0
date_format = listViewChronicles.SelectedItem
art_name = listViewChronicles.SelectedItem.ListSubItems(4)
aut_name = listViewChronicles.SelectedItem.ListSubItems(5)
art_date = listViewChronicles.SelectedItem.ListSubItems(6)
file_type = listViewChronicles.SelectedItem.ListSubItems(8)
trackerDirObj.Path = listViewChronicles.SelectedItem.ListSubItems(9)
trackerFileObj.Path = listViewChronicles.SelectedItem.ListSubItems(9)
If trackerFileObj.ListCount = 2 Then
Kill listViewChronicles.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "_" & file_type & ".afd"
Kill listViewChronicles.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "." & file_type
RmDir removeLastCharacter(listViewChronicles.SelectedItem.ListSubItems(9))
trackerDirObj.Path = labelCurrentDir & "\chronicles" & "\" & date_format
If trackerDirObj.ListCount = 0 Then
trackerDirObj.Path = labelCurrentDir & "\chronicles"
RmDir labelCurrentDir & "\chronicles" & "\" & date_format
trackerDirObj.Refresh
End If
Else
Kill listViewChronicles.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "_" & file_type & ".afd"
Kill listViewChronicles.SelectedItem.ListSubItems(9) & art_name & "_" & aut_name & "_" & art_date & "." & file_type
trackerDirObj.Path = labelCurrentDir & "\chronicles\" & date_format
If trackerDirObj.ListCount = 0 Then
trackerDirObj.Path = labelCurrentDir & "\chronicles"
RmDir labelCurrentDir & "\chronicles" & "\" & date_format
trackerDirObj.Refresh
End If
End If