-
Notifications
You must be signed in to change notification settings - Fork 6
/
QPM.prg
11500 lines (10855 loc) · 548 KB
/
QPM.prg
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
/*
* QPM - QAC based Project Manager
*
* Copyright 2011-2021 Fernando Yurisich <[email protected]>
* https://teamqpm.github.io/
*
* Based on QAC - Project Manager for (x)Harbour
* Copyright 2006-2011 Carozo de Quilmes <[email protected]>
* http://www.CarozoDeQuilmes.com.ar
*
* 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 <https://www.gnu.org/licenses/>.
*/
#include "minigui.ch"
#include "QPM.ch"
#define SCRIPT_FILE ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'script.ld' )
#define TEMP_LOG ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'temp.log' )
#define END_FILE ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'end.txt' )
#define BUILD_BAT ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'build.bat' )
#define MAKE_FILE ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'temp.bc' )
#define PROGRESS_LOG ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'progress.log' )
#define RUN_FILE ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'runshell.bat' )
#define QPM_GET_DEF ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'qpm_gt.prg' )
#define QPM_TMP_RC ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'temp.rc' )
#define MSG_SYSIN ( US_ShortName( PUB_cProjectFolder ) + DEF_SLASH + '_' + PUB_cSecu + 'MSG.SYSIN' )
#define LISTOLOG iif( bLogActivity, ' -LIST' + US_ShortName( PUB_cQPM_Folder ) + ' ', ' ' )
#define NOAT iif( Prj_Check_UseAt, ' ', ' -NOAT ' )
PROCEDURE Main( PAR_cP01, PAR_cP02, PAR_cP03, PAR_cP04, PAR_cP05, PAR_cP06, PAR_cP07, PAR_cP08, PAR_cP09, PAR_cP10, ;
PAR_cP11, PAR_cP12, PAR_cP13, PAR_cP14, PAR_cP15, PAR_cP16, PAR_cP17, PAR_cP18, PAR_cP19, PAR_cP20 )
LOCAL Folder, FileName, i, nPos, LogIni, LOC_cParam, nRow, nCol, nWidth, nHeight
REQUEST DBFCDX, DBFFPT
rddSetDefault( 'DBFCDX' )
/* Load parameters (do not change = to := because it brokes the pp rule) */
PAR_cP01 = iif( PAR_cP01 = NIL, '', PAR_cP01 )
PAR_cP02 = iif( PAR_cP02 = NIL, '', PAR_cP02 )
PAR_cP03 = iif( PAR_cP03 = NIL, '', PAR_cP03 )
PAR_cP04 = iif( PAR_cP04 = NIL, '', PAR_cP04 )
PAR_cP05 = iif( PAR_cP05 = NIL, '', PAR_cP05 )
PAR_cP06 = iif( PAR_cP06 = NIL, '', PAR_cP06 )
PAR_cP07 = iif( PAR_cP07 = NIL, '', PAR_cP07 )
PAR_cP08 = iif( PAR_cP08 = NIL, '', PAR_cP08 )
PAR_cP09 = iif( PAR_cP09 = NIL, '', PAR_cP09 )
PAR_cP10 = iif( PAR_cP10 = NIL, '', PAR_cP10 )
PAR_cP11 = iif( PAR_cP11 = NIL, '', PAR_cP11 )
PAR_cP12 = iif( PAR_cP12 = NIL, '', PAR_cP12 )
PAR_cP13 = iif( PAR_cP13 = NIL, '', PAR_cP13 )
PAR_cP14 = iif( PAR_cP14 = NIL, '', PAR_cP14 )
PAR_cP15 = iif( PAR_cP15 = NIL, '', PAR_cP15 )
PAR_cP16 = iif( PAR_cP16 = NIL, '', PAR_cP16 )
PAR_cP17 = iif( PAR_cP17 = NIL, '', PAR_cP17 )
PAR_cP18 = iif( PAR_cP18 = NIL, '', PAR_cP18 )
PAR_cP19 = iif( PAR_cP19 = NIL, '', PAR_cP19 )
PAR_cP20 = iif( PAR_cP20 = NIL, '', PAR_cP20 )
LOC_cParam := AllTrim( PAR_cP01 + ' ' + PAR_cP02 + ' ' + PAR_cP03 + ' ' + PAR_cP04 + ' ' + PAR_cP05 + ' ' + ;
PAR_cP06 + ' ' + PAR_cP07 + ' ' + PAR_cP08 + ' ' + PAR_cP09 + ' ' + PAR_cP10 + ' ' + ;
PAR_cP11 + ' ' + PAR_cP12 + ' ' + PAR_cP13 + ' ' + PAR_cP14 + ' ' + PAR_cP15 + ' ' + ;
PAR_cP16 + ' ' + PAR_cP17 + ' ' + PAR_cP18 + ' ' + PAR_cP19 + ' ' + PAR_cP20 )
/* Process priority */
PUBLIC PUB_QPM_bHigh := .F.
QPM_SetProcessPriority( 'HIGH' )
/* Create other public vars */
QPM_CreatePublicVars()
/* Configuration */
SET LANGUAGE TO ENGLISH
SET DELETED ON
SET NAVIGATION EXTENDED
SET MENUSTYLE EXTENDED
/* SET EXACT ON **** DO NO ENABLE THIS, SEE FUNCTION xRefPrgFmg ****/
SET TOOLTIPSTYLE BALLOON
/* Check screen size*/
IF GetDesktopRealWidth() < 800
MyMsgStop( 'Sorry, QPM needs a minimun screen configuration of 800x600.' + CRLF + 'QPM is optimized for 1024x768 resolution.' )
ExitProcess( 1 )
ENDIF
IF Empty( LOC_cParam )
IF PUB_bW800
MyMsgInfo( 'QPM has been optimized for 1024x768 screen size' + CRLF + 'but your configuration is also supported with reduced workplace.' )
ENDIF
ENDIF
/* Check file existence */
FOR i := 1 TO Len( vExeList )
IF ! File( vExeList[ i ] )
AAdd( vExeNotFound, vExeList[ i ] )
ENDIF
NEXT
IF Len( vExeNotFound ) > 0
cExeNotFoundMsg := 'This product is incomplete:' + CRLF + CRLF
FOR i := 1 TO Len( vExeNotFound )
cExeNotFoundMsg := cExeNotFoundMsg + "File " + vExeNotFound[ i ] + ' not found!' + CRLF
NEXT
MyMsgStop( cExeNotFoundMsg )
ExitProcess( 1 )
ENDIF
IF ! File( PUB_cQPM_Folder + DEF_SLASH + 'filler' )
QPM_LogText( "Filler file" )
QPM_MemoWrit( PUB_cQPM_Folder + DEF_SLASH + 'filler', Chr( 13 ) + Chr( 10 ) )
QPM_LogText( "Created" )
ENDIF
/* Analize parameters */
IF Empty( LOC_cParam )
AAdd( PUB_vAutoRun, 'QPM_SetResumen()' )
ELSE
IF ( nPos := US_WordPos( '--BUILD', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--LITE', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--DEBUG', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--RUN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--BUTTONRUN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--CLEAR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--OPEN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--IGNOREVERSIONPROJECT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--FORCEFULL', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordStrPos( '--LOG(', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--LOGONLYERROR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '--EXIT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
DO CASE
CASE US_Upper( US_Word( LOC_cParam, 1 ) ) == '-VER' .OR. US_Upper( US_Word( LOC_cParam, 1 ) ) == '-VERSION'
QPM_LogText( QPM_VERSION_NUMBER_LONG )
QPM_MemoWrit( US_FileNameOnlyPathAndName( GetModuleFileName( GetInstance() ) ) + '.version', QPM_VERSION_NUMBER_LONG )
QPM_LogText( "Done" )
ExitProcess( 0 )
CASE ( nPos := US_WordPos( '-BUILD', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_OpenProject(PUB_cProjectFile)' )
IF ( nPos := US_WordPos( '-LITE', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLite := .T.
ENDIF
IF ( nPos := US_WordPos( '-FORCEFULL', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EraseObj()' )
ENDIF
IF ( nPos := US_WordPos( '-DEBUG', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'SwitchDebug()' )
ENDIF
AAdd( PUB_vAutoRun, 'QPM_Build()' )
IF ( nPos := US_WordPos( '-BUTTONRUN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EnableButtonRun()' )
bWaitForBuild := .T.
ENDIF
IF ( nPos := US_WordPos( '-RUN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_Run( bRunParm )' )
bWaitForBuild := .T.
ENDIF
IF ( nPos := US_WordPos( '-CLEAR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EraseAll()' )
bWaitForBuild := .T.
ENDIF
IF ( nPos := US_WordPos( '-EXIT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_Exit()' )
bWaitForBuild := .T.
bAutoExit := .T.
IF ( nPos := US_WordStrPos( '-LOG(', US_Upper( LOC_cParam ) ) ) > 0
LogIni := US_WordInd( LOC_cParam, nPos )
PUB_cAutoLog := US_WordSubStr( LOC_cParam, nPos )
PUB_cAutoLog := SubStr( PUB_cAutoLog, 6, at( ')', PUB_cAutoLog ) - 6 )
IF Empty( PUB_cAutoLog )
MyMsgInfo( 'Error detecting log: ' + DBLQT + LOC_cParam + DBLQT )
ELSE
LOC_cParam := SubStr( LOC_cParam, 1, LogIni - 1 ) + SubStr( LOC_cParam, LogIni + Len( PUB_cAutoLog ) + 6 )
IF ( nPos := US_WordPos( '-LOGONLYERROR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLogOnlyError := .T.
ENDIF
ENDIF
ENDIF
ENDIF
IF ( nPos := US_WordPos( '-OPEN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '-IGNOREVERSIONPROJECT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bIgnoreVersionProject := .T.
ENDIF
PUB_cProjectFile := AllTrim( LOC_cParam )
CASE ( nPos := US_WordPos( '-RUN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_OpenProject(PUB_cProjectFile)' )
AAdd( PUB_vAutoRun, 'QPM_Run( bRunParm )' )
bWaitForBuild := .F.
IF ( nPos := US_WordPos( '-LITE', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLite := .T.
ENDIF
IF ( nPos := US_WordPos( '-CLEAR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EraseAll()' )
bWaitForBuild := .T.
ENDIF
IF ( nPos := US_WordPos( '-EXIT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_Exit()' )
bWaitForBuild := .F.
bAutoExit := .T.
IF ( nPos := US_WordStrPos( '-LOG(', US_Upper( LOC_cParam ) ) ) > 0
LogIni := US_WordInd( LOC_cParam, nPos )
PUB_cAutoLog := US_WordSubStr( LOC_cParam, nPos )
PUB_cAutoLog := SubStr( PUB_cAutoLog, 6, At( ')', PUB_cAutoLog ) - 6 )
IF Empty( PUB_cAutoLog )
MyMsgInfo( 'Error detecting log: ' + DBLQT + LOC_cParam + DBLQT )
ELSE
LOC_cParam := SubStr( LOC_cParam, 1, LogIni - 1 ) + SubStr( LOC_cParam, LogIni + Len( PUB_cAutoLog ) + 6 )
IF ( nPos := US_WordPos( '-LOGONLYERROR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLogOnlyError := .T.
ENDIF
ENDIF
ENDIF
ENDIF
IF ( nPos := US_WordPos( '-OPEN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
ENDIF
IF ( nPos := US_WordPos( '-IGNOREVERSIONPROJECT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bIgnoreVersionProject := .T.
ENDIF
PUB_cProjectFile := AllTrim( LOC_cParam )
CASE ( nPos := US_WordPos( '-CLEAR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_OpenProject(PUB_cProjectFile)' )
IF ( nPos := US_WordPos( '-LITE', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLite := .T.
ENDIF
IF ( nPos := US_WordPos( '-FORCEFULL', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EraseObj()' )
ENDIF
AAdd( PUB_vAutoRun, 'EraseALL()' )
IF ( nPos := US_WordPos( '-EXIT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_Exit()' )
bWaitForBuild := .F.
bAutoExit := .T.
IF ( nPos := US_WordStrPos( '-LOG(', US_Upper( LOC_cParam ) ) ) > 0
LogIni := US_WordInd( LOC_cParam, nPos )
PUB_cAutoLog := US_WordSubStr( LOC_cParam, nPos )
PUB_cAutoLog := SubStr( PUB_cAutoLog, 6, At( ')', PUB_cAutoLog ) - 6 )
IF Empty( PUB_cAutoLog )
MyMsgInfo( 'Error detecting log: ' + DBLQT + LOC_cParam + DBLQT )
ELSE
LOC_cParam := SubStr( LOC_cParam, 1, LogIni - 1 ) + SubStr( LOC_cParam, LogIni + Len( PUB_cAutoLog ) + 6 )
IF ( nPos := US_WordPos( '-LOGONLYERROR', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bLogOnlyError := .T.
ENDIF
ENDIF
ENDIF
ENDIF
IF ( nPos := US_WordPos( '-IGNOREVERSIONPROJECT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bIgnoreVersionProject := .T.
ENDIF
PUB_cProjectFile := AllTrim( LOC_cParam )
CASE ( nPos := US_WordPos( '-OPEN', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'QPM_OpenProject(PUB_cProjectFile)' )
IF ( nPos := US_WordPos( '-FORCEFULL', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
AAdd( PUB_vAutoRun, 'EraseObj()' )
ENDIF
IF ( nPos := US_WordPos( '-IGNOREVERSIONPROJECT', US_Upper( LOC_cParam ) ) ) > 0
LOC_cParam := US_WordDel( LOC_cParam, nPos )
PUB_bIgnoreVersionProject := .T.
ENDIF
PUB_cProjectFile := AllTrim( LOC_cParam )
OTHERWISE
AAdd( PUB_vAutoRun, 'QPM_OpenProject(PUB_cProjectFile)' )
PUB_cProjectFile := AllTrim( LOC_cParam )
ENDCASE
IF ! Empty( PUB_cProjectFile )
PUB_bOpenProjectFromParm := .T.
IF Empty( US_FileNameOnlyPath( PUB_cProjectFile ) )
PUB_cProjectFile := GetCurrentFolder() + DEF_SLASH + PUB_cProjectFile
ENDIF
ENDIF
ENDIF
/* Create log */
IF bAutoExit .AND. ! Empty( PUB_cAutoLog )
IF RAt( DEF_SLASH, PUB_cAutoLog ) == 0
PUB_cAutoLog := GetCurrentFolder() + DEF_SLASH + PUB_cAutoLog
ENDIF
PUB_cAutoLogTmp := MemoRead( PUB_cAutoLog )
IF ( i := RAt( Replicate( '=', 80 ) + CRLF, PUB_cAutoLogTmp ) ) > 0
IF i # Len( PUB_cAutoLogTmp ) - 80 - Len( CRLF ) + 1
i := 0
ENDIF
ENDIF
IF i == 0
PUB_cAutoLogTmp += CRLF + Replicate( '=', 80 ) + CRLF
ENDIF
PUB_cAutoLogTmp += 'Project file: ' + PUB_cProjectFile + CRLF
PUB_cAutoLogTmp += US_VarToStr( Date() ) + ' ' + US_VarToStr( Time() ) + CRLF
QPM_LogText( "Creating Autolog" )
QPM_MemoWrit( PUB_cAutoLog, PUB_cAutoLogTmp )
QPM_LogText( "Done" )
ENDIF
SET FONT TO 'Arial', 9
QPM_Wait( 'LoadEnvironment()', 'Loading environment ...' )
DEFINE WINDOW VentanaMain ;
AT GetDesktopRealTop(), GetDesktopRealLeft() ;
WIDTH GetDesktopRealWidth() HEIGHT GetDesktopRealHeight() ;
TITLE PUB_cQPM_Title + ' [ Project not opened! ]' ;
ICON 'QPM' ;
MAIN ;
ON INIT MainInitAutoRun() ;
ON RELEASE iif( PUB_bLite, NIL, ( SaveEnvironment( .T. ), CleanAuxFiles() ) );
ON INTERACTIVECLOSE QPM_Exit( .T. )
DEFINE TOOLBAR ToolBar_1 OF VentanaMain
END TOOLBAR
QPM_DefinoMainMenu()
DEFINE CONTEXT MENU
#ifdef QPM_SHG
ITEM '&Move Item' ACTION SHG_Move_Item() IMAGE 'US_EditCopy' NAME ItC_Move
SEPARATOR
ITEM '&Copy' ACTION SHG_Send_Copy() IMAGE 'US_EditCopy' NAME ItC_Copy
ITEM 'C&ut' ACTION SHG_Send_Cut() IMAGE 'US_EditCut' NAME ItC_Cut
ITEM '&Paste' ACTION SHG_Send_Paste() IMAGE 'US_EditPaste' NAME ItC_Paste
SEPARATOR
ITEM '&Select all' ACTION QPM_Send_SelectAll() NAME ItC_SelectAll
SEPARATOR
ITEM '&Add to Key List' ACTION SHG_AddHlpKey() IMAGE 'add' NAME ItC_AddHlpKey
SEPARATOR
ITEM 'Add Character &&' ACTION SHG_AddHlpHTML('Ampersand') NAME ItC_AddHlpHTMLAmpersand
ITEM 'Add Character <' ACTION SHG_AddHlpHTML('Menor') NAME ItC_AddHlpHTMLMenor
ITEM 'Add Character >' ACTION SHG_AddHlpHTML('Mayor') NAME ItC_AddHlpHTMLMayor
ITEM 'Add Character SPACE' ACTION SHG_AddHlpHTML('Space') NAME ItC_AddHlpHTMLSpace
SEPARATOR
ITEM 'Add Image from File' ACTION SHG_AddHlpHTML('Image') NAME ItC_AddHlpHTMLImage
ITEM 'Add eMail' ACTION SHG_AddHlpHTML('eMail') NAME ItC_AddHlpHTMLeMail
ITEM 'Add Link to Internet' ACTION SHG_AddHlpHTML('Link') NAME ItC_AddHlpHTMLLink
ITEM 'Add Link to Topic' ACTION SHG_AddHlpHTML('LinkTopic') NAME ItC_AddHlpHTMLLinkTopic
ITEM 'Add Ancora' ACTION SHG_AddHlpHTML('Ancora') NAME ItC_AddHlpHTMLAncora
#else
ITEM '&Copy' ACTION ( US_Send_Copy(), DoEvents() ) IMAGE 'US_EditCopy' NAME ItC_Copy
ITEM 'C&ut' ACTION ( US_Send_Cut(), DoEvents() ) IMAGE 'US_EditCut' NAME ItC_Cut
ITEM '&Paste' ACTION ( US_Send_Paste(), DoEvents() ) IMAGE 'US_EditPaste' NAME ItC_Paste
SEPARATOR
ITEM '&Select all' ACTION QPM_Send_SelectAll(), DoEvents() ) NAME ItC_SelectAll
#endif
END MENU
VentanaMain.ItC_Cut.Enabled := .F.
VentanaMain.ItC_Paste.Enabled := .F.
VentanaMain.ItC_CutM.Enabled := .F.
VentanaMain.ItC_PasteM.Enabled := .F.
#ifdef QPM_SHG
VentanaMain.ItC_Move.Enabled := .F.
VentanaMain.ItC_AddHlpKey.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLAmpersand.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLMenor.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLMayor.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLSpace.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLImage.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLeMail.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLLink.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLLinkTopic.Enabled := .F.
VentanaMain.ItC_AddHlpHTMLAncora.Enabled := .F.
#endif
@ iif( IsXPThemeActive(), 54, 47 ), 1 FRAME FFrame ;
WIDTH ( GetDesktopRealWidth() - 9 ) ;
HEIGHT ( GetDesktopRealHeight() - 105 )
#ifndef QPM_SYNCRECOVERY
DEFINE BUTTONEX EraseALL
ROW 63
COL 10
WIDTH 135
HEIGHT 25
PICTURE 'clearall'
TOOLTIP 'Delete ALL existing object folders.'
ONCLICK EraseALL()
END BUTTONEX
#else
DEFINE BUTTONEX BTakeSyncRecovery
ROW 63
COL 10
WIDTH 65
HEIGHT 25
PICTURE 'SyncRec'
TOOLTIP 'Force the taking of a Sync Recovery Point for this project.'
ONCLICK QPM_ForceSyncRecovery()
END BUTTONEX
DEFINE BUTTONEX EraseALL
ROW 63
COL 80
WIDTH 65
HEIGHT 25
PICTURE 'clearall'
TOOLTIP 'Delete ALL existing object folders.'
ONCLICK EraseALL()
END BUTTONEX
#endif
DEFINE BUTTONEX EraseOBJ
ROW 63
COL 150
WIDTH 170
HEIGHT 25
PICTURE 'force'
TOOLTIP 'Force recompilation of all programs in the project.'
ONCLICK EraseOBJ()
END BUTTONEX
DEFINE TAB TabGrids ;
OF VentanaMain ;
AT 95, 10 ;
WIDTH 310 ;
HEIGHT ( GetDesktopRealHeight() - 165 ) ;
ON CHANGE TabChange( 'GRIDS' )
DEFINE PAGE PagePRG
DEFINE LABEL LProjectFolder
ROW 40
COL 12
WIDTH 89
VALUE 'Project Folder:'
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE TEXTBOX TProjectFolder
ROW 40
COL 102
WIDTH 160
ON CHANGE iif( Right( PUB_cProjectFolder := AllTrim( US_FileNameOnlyPath( GetProperty( 'VentanaMain', 'TProjectFolder', 'Value' ) ) ), 1 ) == DEF_SLASH, ;
PUB_cProjectFolder := Left( PUB_cProjectFolder, Len( PUB_cProjectFolder ) - 1 ), ;
NIL )
END TEXTBOX
DEFINE BUTTONEX BProjectFolder
ROW 40
COL 270
WIDTH 25
HEIGHT 25
PICTURE 'folderselect'
TOOLTIP "Select project's folder."
ONCLICK ( iif( ! Empty( Folder := GetFolder( 'Select Folder', VentanaMain.TProjectFolder.Value ) ), ;
VentanaMain.TProjectFolder.Value := Folder, ;
NIL), ;
QPM_CheckFiles() )
END BUTTONEX
DEFINE LABEL LRunProjectFolder
ROW 70
COL 12
WIDTH 89
VALUE 'Run Folder:'
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE TEXTBOX TRunProjectFolder
ROW 70
COL 102
WIDTH 160
END TEXTBOX
DEFINE BUTTONEX BRunProjectFolder
ROW 70
COL 270
WIDTH 25
HEIGHT 25
PICTURE 'folderselect'
TOOLTIP "Select project's run folder."
ONCLICK iif( ! Empty( Folder := GetFolder( 'Select Folder', VentanaMain.TRunProjectFolder.Value ) ), ;
VentanaMain.TRunProjectFolder.Value := Folder, ;
NIL )
END BUTTONEX
DEFINE BUTTONEX BPrgAdd
ROW 100
COL 12
WIDTH 65
HEIGHT 25
PICTURE 'add'
TOOLTIP 'Add file to project.'
ONCLICK QPM_AddFilesPRG()
END BUTTONEX
#ifndef QPM_HOTRECOVERYWINDOW
DEFINE BUTTONEX BPrgRemove
ROW 100
COL 85
WIDTH 65
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove file from project.'
ONCLICK QPM_RemoveFilePRG()
END BUTTONEX
#else
DEFINE BUTTONEX BPrgRemove
ROW 100
COL 85
WIDTH 30
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove file from project.'
ONCLICK QPM_RemoveFilePRG()
END BUTTONEX
DEFINE BUTTONEX BPrgHotRecovery
ROW 100
COL 120
WIDTH 30
HEIGHT 25
PICTURE 'hotrec'
TOOLTIP 'Save a Hot Recovery Version for the selected source'
ONCLICK QPM_ForceHotRecovery( 'PRG' )
END BUTTONEX
#endif
DEFINE BUTTONEX BPrgEdit
ROW 100
COL 158
WIDTH 65
HEIGHT 25
PICTURE 'Edit'
TOOLTIP 'Edit selected file.'
ONCLICK QPM_EditPRG()
END BUTTONEX
DEFINE BUTTONEX SetTopPRG
ROW 100
COL 230
WIDTH 30
HEIGHT 25
PICTURE 'SetTop'
TOOLTIP "Set the selected file as Project's " + DBLQT + "Top File" + DBLQT + "."
ONCLICK QPM_SetTopPRG()
END BUTTONEX
DEFINE BUTTONEX ForceRecompPRG
ROW 100
COL 265
WIDTH 30
HEIGHT 25
PICTURE 'ForceRecomp'
TOOLTIP 'Toggle the "Forced Recompilation" switch of the selected file.'
ONCLICK QPM_ForceRecompPRG()
END BUTTONEX
DEFINE BUTTONEX BSortPRG
ROW 130
COL 12
WIDTH 65
HEIGHT 25
PICTURE 'Sort'
TOOLTIP "Sort files in alphabetical order. Note that the " + DBLQT + "Top File" + DBLQT + "will remain unchanged."
ONCLICK SortPRG( 'VentanaMain', 'GPrgFiles', NCOLPRGNAME )
END BUTTONEX
DEFINE BUTTONEX BVerChange
ROW 130
COL 85
WIDTH 55
HEIGHT 25
PICTURE 'ChangeVersion'
TOOLTIP "Change project's version, release and/or build numbers."
ONCLICK QPM_ChangePrj_Version()
END BUTTONEX
DEFINE LABEL LVerTitle
ROW 135
COL 145
VALUE 'Version'
WIDTH 45
HEIGHT 25
FONTCOLOR DEF_COLORGREEN
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE LABEL LVerVerNum
ROW 135
COL 193
VALUE Replicate( '0', DEF_LEN_VER_VERSION )
WIDTH 15
HEIGHT 25
FONTBOLD .T.
FONTCOLOR DEF_COLORGREEN
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE LABEL LVerPoint
ROW 135
COL 208
VALUE '.'
WIDTH 5
HEIGHT 25
FONTCOLOR DEF_COLORGREEN
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE LABEL LVerRelNum
ROW 135
COL 212
VALUE Replicate( '0', DEF_LEN_VER_RELEASE )
WIDTH 15
HEIGHT 25
FONTBOLD .T.
FONTCOLOR DEF_COLORGREEN
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE LABEL LVerBui
ROW 135
COL 230
VALUE 'Build'
WIDTH 30
HEIGHT 25
FONTCOLOR DEF_COLORBLUE
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE LABEL LVerBuiNum
ROW 135
COL 265
VALUE Replicate( '0', DEF_LEN_VER_BUILD )
WIDTH 30
HEIGHT 25
FONTBOLD .T.
FONTCOLOR DEF_COLORBLUE
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
END LABEL
DEFINE BUTTONEX BSyncPrg
ROW 312
COL 296
WIDTH 11
HEIGHT 21
PICTURE 'SYNC'
TOOLTIP 'Syncronize tabs.'
ONCLICK TabSync()
END BUTTONEX
DEFINE BUTTONEX BUpPrg
ROW 160
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'UP'
TOOLTIP 'Move the selected file up in the list.'
ONCLICK UpPrg()
END BUTTONEX
DEFINE BUTTONEX BDownPrg
ROW 190
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'DOWN'
TOOLTIP 'Move the selected file down in the list.'
ONCLICK DownPrg()
END BUTTONEX
DEFINE BUTTONEX BUpPrg2
ROW GetDesktopRealHeight() - 237
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'UP'
TOOLTIP 'Move the selected file up in the list.'
ONCLICK UpPrg()
END BUTTONEX
DEFINE BUTTONEX BDownPrg2
ROW GetDesktopRealHeight() - 207
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'DOWN'
TOOLTIP 'Move the selected file down in the list.'
ONCLICK DownPrg()
END BUTTONEX
/* Warning: this grid's height is also set by ActLibReimp() function */
@ 160, 25 GRID GPrgFiles ;
WIDTH 270 ;
HEIGHT GetDesktopRealHeight() - 345 ;
HEADERS { 'S', 'R', 'Src Name', 'Src Full Name', 'Offset', 'Control Edit', 'Hot Recovery' } ;
WIDTHS { 25, 0, 100, 1000, 20, 20, 20 };
ITEMS aGridPRG ;
VALUE 1 ;
IMAGE vImagesGrid ;
BACKCOLOR DEF_COLORBACKPRG ;
ON HEADCLICK { { || SortPRG( 'VentanaMain', 'GPrgFiles', 1 ) }, ;
{ || SortPRG( 'VentanaMain', 'GPrgFiles', 2 ) }, ;
{ || SortPRG( 'VentanaMain', 'GPrgFiles', 3 ) }, ;
{ || SortPRG( 'VentanaMain', 'GPrgFiles', 4 ) } } ;
ON DBLCLICK { || QPM_EditPRG() } ;
ON CHANGE { || iif( ! bPrgSorting .AND. ! PUB_bLite, ;
iif( bNumberOnPrg, ;
QPM_Wait( "RichEditDisplay('PRG')", 'Reloading' ), ;
RichEditDisplay('PRG') ), ;
NIL ) } ;
JUSTIFY { BROWSE_JTFY_LEFT }
DEFINE CHECKBOX Check_Reimp
CAPTION 'ReImport from .Lib library (MinGW only)'
ROW iif( PUB_bW800, 280, 320 )
COL 30
WIDTH 250
HEIGHT 20
VALUE .F.
TOOLTIP 'Make ".a" interface library from ".lib" interface library.'
TRANSPARENT iif( IsXPThemeActive(), .T., .F. )
ON CHANGE ( SetProperty( 'VentanaMain', 'LReImportLib', 'enabled', GetProperty( 'VentanaMain', 'Check_Reimp', 'Value' ) ), ;
SetProperty( 'VentanaMain', 'TReImportLib', 'enabled', GetProperty( 'VentanaMain', 'Check_Reimp', 'Value' ) ), ;
SetProperty( 'VentanaMain', 'BReImportLib', 'enabled', GetProperty( 'VentanaMain', 'Check_Reimp', 'Value' ) ) )
END CHECKBOX
DEFINE LABEL LReImportLib
ROW iif( PUB_bW800, 320, 360 )
COL 30
VALUE "Input interface '.lib':"
TRANSPARENT IsXPThemeActive()
END LABEL
DEFINE TEXTBOX TReImportLib
ROW iif( PUB_bW800, 350, 390 )
COL 30
WIDTH 220
END TEXTBOX
DEFINE BUTTONEX BReImportLib
ROW iif( PUB_bW800, 350, 390 )
COL 270
WIDTH 25
HEIGHT 25
PICTURE 'folderselect'
TOOLTIP 'Select library.'
ONCLICK iif( Empty( FileName := GetFile( { {'Library (*.lib)','*.lib'} }, ;
'Select Library for ReImport', ;
US_FileNameOnlyPath( ChgPathToReal( VentanaMain.TReImportLib.Value ) ), ;
.T., .F. ) ), ;
NIL, ;
VentanaMain.TReImportLib.Value := ChgPathToRelative( FileName ) )
END BUTTONEX
DEFINE CHECKBOX Check_GuionA
CAPTION "Add '_' alias (except MinGW)"
ROW iif( PUB_bW800, 420, 460 )
COL 30
WIDTH 250
HEIGHT 20
VALUE .F.
TOOLTIP 'Add "_" alias for MS flavor cdecl functions (BCC32 or Pelles).'
TRANSPARENT IsXPThemeActive()
END CHECKBOX
ActLibReimp()
END PAGE
DEFINE PAGE PageHEA
DEFINE BUTTONEX BHeAAdd
ROW 40
COL 12
WIDTH 65
HEIGHT 25
PICTURE 'add'
TOOLTIP 'Add header.'
ONCLICK QPM_AddFilesHEA()
END BUTTONEX
#ifndef QPM_HOTRECOVERYWINDOW
DEFINE BUTTONEX BHeaRemove
ROW 40
COL 85
WIDTH 65
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove header.'
ONCLICK QPM_RemoveFileHEA()
END BUTTONEX
#else
DEFINE BUTTONEX BHeaRemove
ROW 40
COL 85
WIDTH 30
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove header.'
ONCLICK QPM_RemoveFileHEA()
END BUTTONEX
DEFINE BUTTONEX BHeaHotRecovery
ROW 40
COL 120
WIDTH 30
HEIGHT 25
PICTURE 'hotrec'
TOOLTIP 'Force the saving of a Hot Recovery Version for the selected header.'
ONCLICK QPM_ForceHotRecovery( 'HEA' )
END BUTTONEX
#endif
DEFINE BUTTONEX BHeaEdit
ROW 40
COL 158
WIDTH 65
HEIGHT 25
PICTURE 'Edit'
TOOLTIP 'Modify header.'
ONCLICK QPM_EditHEA ()
END BUTTONEX
DEFINE BUTTONEX BSortHea
ROW 70
COL 12
WIDTH 65
HEIGHT 25
PICTURE 'Sort'
TOOLTIP 'Sort headers in alphabetical order.'
ONCLICK SortHEA( 'VentanaMain', 'GHeaFiles', NCOLHEANAME )
END BUTTONEX
DEFINE BUTTONEX BSyncHea
ROW 312
COL 296
WIDTH 11
HEIGHT 21
PICTURE 'SYNC'
TOOLTIP 'Syncronize tabs.'
ONCLICK TabSync()
END BUTTONEX
DEFINE BUTTONEX BUpHea
ROW 100
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'UP'
TOOLTIP 'Move the selected header up in the list.'
ONCLICK UpHea()
END BUTTONEX
DEFINE BUTTONEX BDownHea
ROW 130
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'DOWN'
TOOLTIP 'Move the selected header down in the list.'
ONCLICK DownHea()
END BUTTONEX
DEFINE BUTTONEX BUpHea2
ROW GetDesktopRealHeight() - 237
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'UP'
TOOLTIP 'Move the selected header up in the list.'
ONCLICK UpHea()
END BUTTONEX
DEFINE BUTTONEX BDownHea2
ROW GetDesktopRealHeight() - 207
COL 12
WIDTH 11
HEIGHT 21
PICTURE 'DOWN'
TOOLTIP 'Move the selected header down in the list.'
ONCLICK DownHea()
END BUTTONEX
@ 100, 25 GRID GHeaFiles ;
WIDTH 270 ;
HEIGHT GetDesktopRealHeight() - 285 ;
HEADERS { 'S', 'Header Name', 'Header Full Name', 'Offset', 'Control Edit', 'Hot Recovery' } ;
WIDTHS { 25, 100, 1000, 20, 20, 20 };
ITEMS aGridHea ;
IMAGE vImagesGrid ;
VALUE 1 ;
BACKCOLOR DEF_COLORBACKHEA ;
ON HEADCLICK { { || SortHEA( 'VentanaMain', 'GHeaFiles', 1 ) }, ;
{ || SortHEA( 'VentanaMain', 'GHeaFiles', 2 ) }, ;
{ || SortHEA( 'VentanaMain', 'GHeaFiles', 3 ) }, ;
{ || SortHEA( 'VentanaMain', 'GHeaFiles', 4 ) } } ;
ON DBLCLICK { QPM_EditHEA() } ;
ON CHANGE { || iif( ! bHeaSorting .AND. ! PUB_bLite, ;
iif( bNumberOnHea, QPM_Wait( "RichEditDisplay('HEA')", 'Reloading' ), RichEditDisplay('HEA') ), ;
NIL ) } ;
JUSTIFY { BROWSE_JTFY_LEFT }
END PAGE
DEFINE PAGE PagePAN
DEFINE BUTTONEX BPanAdd
ROW 40
COL 12
WIDTH 65
HEIGHT 25
PICTURE 'add'
TOOLTIP 'Add form.'
ONCLICK QPM_AddFilesPAN()
END BUTTONEX
#ifndef QPM_HOTRECOVERYWINDOW
DEFINE BUTTONEX BPanRemove
ROW 40
COL 85
WIDTH 65
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove form.'
ONCLICK QPM_RemoveFilePAN()
END BUTTONEX
#else
DEFINE BUTTONEX BPanRemove
ROW 40
COL 85
WIDTH 30
HEIGHT 25
PICTURE 'remove'
TOOLTIP 'Remove form.'
ONCLICK QPM_RemoveFilePAN()
END BUTTONEX
DEFINE BUTTONEX BPanHotRecovery
ROW 40
COL 120
WIDTH 30
HEIGHT 25
PICTURE 'hotrec'
TOOLTIP 'Force the saving of a Hot Recovery Version for the selected form.'
ONCLICK QPM_ForceHotRecovery( 'PAN' )
END BUTTONEX
#endif
DEFINE BUTTONEX BPanEditTool
ROW 40
COL 158
WIDTH 65
HEIGHT 25
CAPTION 'With Tool'
TOOLTIP 'Modify form with associated tool.'
ONCLICK QPM_EditPAN()
END BUTTONEX
DEFINE BUTTONEX BPanEditEditor
ROW 40
COL 230