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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
|
// 0 is special "invalid character"
// Value > 0 indicates from dsirc -> ksirc
// Value < 0 indicates from ksirc -> dsirc
// Desc: INVALID command
// iWinId: not defined
// iArg: not defined
// cArg: not defined
#define PUKE_INVALID 0
// Desc: associantes server name with fd.
// iWinId: not defined, but pass unchanged
// iArg: not defined
// cArg: name of the server
#define PUKE_SETUP 1
// Desc: replies to make sure association was valid
// iWinId: not defined, but pass unchanged
// iArg: size of Message
// cArg: not defined
#define PUKE_SETUP_ACK -1
// Desc: sends the ack back. Used for doing actions after returning to select.
// iWinId: window id
// iArg: not defined
// cArg: not define
#define PUKE_ECHO 5
// Desc: sends the ack back. Used for doing actions after returning to select.
// iWinId: window id
// iArg: not defined
// cArg: not define
#define PUKE_ECHO_ACK -5
// From ksirc to sirc, event command unkown.
// There should be somewhere better for this!!!
#define PUKE_EVENT_UNKOWN -999
// Dumps object tree
// iWinId: puke controller
// iArg: not defined
// cArg: undef
#define PUKE_DUMPTREE 997
// Desc: dump object tree ack
// iWinId: undef
// iArg: undef
// cArg: undef
#define PUKE_DUMPTREE_ACK -997
// Release a widget without delete'ing it, used after fetching a widget
// iWinId: window id
// iArg: undef
// cArg: undef
#define PUKE_RELEASEWIDGET 996
// Desc: release ack
// iWinId: window id
// iArg: undef
// cArg: undef
#define PUKE_RELEASEWIDGET_ACK -996
// Fetch widgets
// Desc: get widget from parent
// iWinId: not defined
// iArg: not defined
// cArg: 2 feilds, tab sperated, must be returned unchanged. 1. random string. 3. Object Name.
#define PUKE_FETCHWIDGET 998
// Desc: Fetch widget ack
// iWinId: new widget id
// iArg: not defined
// cArg: 2 feilds, tab sperated, must be returned unchanged. 1. random string. 3. Object Name.
#define PUKE_FETCHWIDGET_ACK -998
// Widget commands starts at 1000 and end at 10000
// Desc: create new widget
// iWinId: parent widget id
// iArg: widget type as defined by PWIDGET_*
// cArg: Must be return unchanged
#define PUKE_WIDGET_CREATE 1000
// Desc: ack for newly created new widget
// iWinId: new widget Id, 0 if failed
// iArg: widget type as defined by PWIDGET_*
// cArg: Returned unchanged
#define PUKE_WIDGET_CREATE_ACK -1000
// Desc: shows requested widget
// iWinId: widget to show
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_DELETE 1001
// Desc: ack for show requested widget
// iWinId: widget to show
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_DELETE_ACK -1001
// Desc: shows requested widget
// iWinId: widget to show
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_SHOW 1002
// Desc: ack for show requested widget
// iWinId: widget to show
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_SHOW_ACK -1002
// Desc: hidess requested widget
// iWinId: widget to hide
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_HIDE 1003
// Desc: ack for hide requested widget
// iWinId: widget to hide
// iArg: not defined
// cArg: not define
#define PUKE_WIDGET_HIDE_ACK -1003
// Desc: repaint widget
// iWinId: widget to repaint
// iArg: erase, 0 for false, 1 for true
// cArg: no defines
#define PUKE_WIDGET_REPAINT 1005
// Desc: repaint widget ack
// iWinId: widget to repaint
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_REPAINT_ACK -1005
// Desc: update widget on next event loop
// iWinId: widget to repaint
// iArg: erase, 0 for false, 1 for true
// cArg: no defines
#define PUKE_WIDGET_UPDATE 1010
// Desc: repaint widget ack
// iWinId: widget to repaint
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_UPDATE_ACK -1010
// Desc: resize the widget
// iWinId: widget to repaint
// iArg: width in the low 16 bit, height in next 16 bits
// cArg: not defined
#define PUKE_WIDGET_RESIZE 1015
// Desc: repaint widget ack
// iWinId: widget to repaint
// iArg: new widget in lower 16 bit, new height in lower 16 bits
// cArg: not defined
#define PUKE_WIDGET_RESIZE_ACK -1015
// -1020 to -1040 defines TQEvent types
// All arguments are 0 unless otherwise stated
#define PUKE_WIDGET_EVENT_NONE -1020
// iArg: timerId
#define PUKE_WIDGET_EVENT_TIMER -1021
// All EVENT_MOUSE are:
// cArg: cast to int[25], int[0] = x(), int[1] = y(), int[2] = button()
// int[3] = state()
#define PUKE_WIDGET_EVENT_MOUSEBUTTONPRESS -1022
#define PUKE_WIDGET_EVENT_MOUSEBUTTONRELEASE -1023
#define PUKE_WIDGET_EVENT_MOUSEDBLCLICK -1024
#define PUKE_WIDGET_EVENT_MOUSEMOVE -1025
// All EVENT_KEY
// cArg: cast to int[25], int[0] = key(), int[1] = ascii(), int[2] = state()
#define PUKE_WIDGET_EVENT_KEYPRESS -1026
#define PUKE_WIDGET_EVENT_KEYRELEASE -1027
// All EVENT_FOCUS
// cArg[0] = gotFocus()
// cArg[1] = lostFocus()
#define PUKE_WIDGET_EVENT_FOCUSIN -1028
#define PUKE_WIDGET_EVENT_FOCUSOUT -1029
#define PUKE_WIDGET_EVENT_ENTER -1030
#define PUKE_WIDGET_EVENT_LEAVE -1031
// Paint event
#define PUKE_WIDGET_EVENT_PAINT -1032
// cArg: int[0] = pos()->x() int[1] = pos->y()
// int[2] = oldPos->x() int[3] = oldPos->y()
#define PUKE_WIDGET_EVENT_MOVE -1033
// cArg: int[0] = size()->width() int[1] = size()->height()
// int[2] = oldSize()->width() int[3] = oldSize()->height()
#define PUKE_WIDGET_EVENT_RESIZE -1034
#define PUKE_WIDGET_EVENT_CREATE -1035
#define PUKE_WIDGET_EVENT_DESTROY -1036
#define PUKE_WIDGET_EVENT_SHOW -1037
#define PUKE_WIDGET_EVENT_HIDE -1038
#define PUKE_WIDGET_EVENT_CLOSE -1039
// Desc: move widget
// iWinId: widget id
// iArg: new location, lower short is x, upper short is y
// cArg: not define
#define PUKE_WIDGET_MOVE 1050
// Desc: move widget
// iWinId: widget id
// iArg: new location, lower short is x, upper short is y
// cArg: not define
#define PUKE_WIDGET_MOVE_ACK -1050
// Desc: open and load library file
// iWinid: not defined
// iArg: type of widget
// cArg: file name
#define PUKE_WIDGET_LOAD 1055
// Desc: ack the open library file
// iWinid: not defined
// iArg: widget number
// cArg: not defined
#define PUKE_WIDGET_LOAD_ACK -1055
// Desc: unload library file
// iWinid: not define
// iArg: type of widget to unload
// cArg: no define
#define PUKE_WIDGET_UNLOAD 1060
// Desc: ack open and load library file
// iWinid: not defined
// iArg: not defined
// cArg: no defined
#define PUKE_WIDGET_UNLOAD_ACK -1060
// Desc: set's a a minimum size
// iWinid: window id
// iArg: 2 ints, lower is width , upper is height
// cArg: not define
#define PUKE_WIDGET_SETMINSIZE 1065
// Desc: ack for set size
// iWinid: window id
// iArg: 2 ints, lower is new width, upper is new height
// cArg: not defined
#define PUKE_WIDGET_SETMINSIZE_ACK -1065
// Desc: set's a a minimum size
// iWinid: window id
// iArg: 2 ints, lower is width , upper is height
// cArg: not define
#define PUKE_WIDGET_SETMAXSIZE 1070
// Desc: ack for set size
// iWinid: window id
// iArg: 2 ints, lower is new width, upper is new height
// cArg: not defined
#define PUKE_WIDGET_SETMAXSIZE_ACK -1070
// Desc: set widget caption
// iWinid: window id
// iArg: not defined
// cArg: widget caption
#define PUKE_WIDGET_SETCAPTION 1075
// Desc: ack for set caption
// iWinid: window id
// iArg: not define
// cArg: new caption
#define PUKE_WIDGET_SETCAPTION_ACK -1075
// Desc: get background colour
// iWinid: window id
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_GET_BACKGROUND_COLOUR 1080
// Desc: get background colour ack
// iWinid: window id
// iArg: not defined
// cArg: 3 ints packed in rbg combo
#define PUKE_WIDGET_GET_BACKGROUND_COLOUR_ACK -1080
// Desc: set background colour
// iWinid: window id
// iArg: not defined
// cArg: 3 ints packed in rbg combo
#define PUKE_WIDGET_SET_BACKGROUND_COLOUR 1085
// Desc: set background colour ack
// iWinid: window id
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_SET_BACKGROUND_COLOUR_ACK -1085
// Desc: set background pixmap
// iWinid: window id
// iArg: not defined
// cArg: path name to pixmap
#define PUKE_WIDGET_SET_BACKGROUND_PIXMAP 1086
// Desc: set background pixmap ack
// iWinid: window id
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_SET_BACKGROUND_PIXMAP_ACK -1086
// Desc: set background mode
// iWinid: window id
// iArg: mode
// cArg: not defined
#define PUKE_WIDGET_SET_BACKGROUND_MODE 1087
// Desc: set background mode ack
// iWinid: window id
// iArg: new mode
// cArg: not defined
#define PUKE_WIDGET_SET_BACKGROUND_MODE_ACK -1087
// Desc: set widget enabled or disabled
// iWinid: window id
// iArg: 0 for disabled, 1 for enabled
// cArg: not defined
#define PUKE_WIDGET_SET_ENABLED 1090
// Desc: ack for enable/disable
// iWinid: window id
// iArg: not defined
// cArg: not defined
#define PUKE_WIDGET_SET_ENABLED_ACK -1090
// Desc: recreate widget with new parent, etc
// IwinId: window id
// iArg: window ID for new parent, 0x0 for no parent, toplevel
// cArg: 3 packed ints, 0 = x, 1 = y, 2 = showit
#define PUKE_WIDGET_RECREATE 1091
// Desc: ACK recreate widget with new parent, etc
// IwinId: window id
// iArg: 0 (for all ok, other for error)
// cArg: 0
#define PUKE_WIDGET_RECREATE_ACK -1091
// TQFrame gets 1100
// 1100 defines TQFrame
// Desc: set Frame style
// iWinId: widget to chanse
// iArg: frame style to set.
// cArg: no define
#define PUKE_TQFRAME_SET_FRAME 1100
// Desc: get/ack Frame style
// iWinId: widget to changed
// iArg: frame style.
// cArg: no define
#define PUKE_TQFRAME_SET_FRAME_ACK -1100
// Desc: set Frame line width
// iWinId: widget to chanse
// iArg: newline width.
// cArg: no define
#define PUKE_TQFRAME_SET_LINEWIDTH 1105
// Desc: get/ack Frame line width
// iWinId: widget to changed
// iArg: line width.
// cArg: no define
#define PUKE_TQFRAME_SET_LINEWIDTH_ACK -1105
//----------------------------------------------------
// 1200 is a TQLineEdit
// Desc: set max line length
// iWinId: widget to change
// iArg: max line length
// cArg: not defined
#define PUKE_LINED_SET_MAXLENGTH 1200
// Desc: set max line length
// iWinId: widget to change
// iArg: new max line length
// cArg: not defined
#define PUKE_LINED_SET_MAXLENGTH_ACK -1200
// Desc: set echo mode, normal password, no echo, etc
// iWinId: widget to change
// iArg: echo mode
// cArg: not defined
#define PUKE_LINED_SET_ECHOMODE 1205
// Desc: ack for set
// iWinId: widget to change
// iArg: current echo mode
// cArg: not define
#define PUKE_LINED_SET_ECHOMODE_ACK -1205
// Desc: set text contents of widget
// iWinId: widget to change
// iArg: not defined
// cArg: text to set widget too
#define PUKE_LINED_SET_TEXT 1210
// Desc: ack for set
// iWinId: widget to change
// iArg: not define
// cArg: current test
#define PUKE_LINED_SET_TEXT_ACK -1210
// Desc: get current text
// iWinId: widget to change
// iArg:not define
// cArg: not defined
#define PUKE_LINED_GET_TEXT 1215
// Desc: returned info for get text
// iWinId: widget to change
// iArg: not defined
// cArg: text in widget
#define PUKE_LINED_GET_TEXT_ACK -1215
// Desc: return was pressed, action not defined
// iWinId:
// iArg:
// cArg:
#define PUKE_LINED_RETURN_PRESSED 1220
// Desc: return was pressed, return information
// iWinId: widget pressed in
// iArg: not defined
// cArg: not defined
#define PUKE_LINED_RETURN_PRESSED_ACK -1220
//------------------------------------------------
// Desc: set's button's current text
// iWinId: window id
// iArg: not defined
// cArg: text
#define PUKE_BUTTON_SET_TEXT 1300
// Desc: ack for set text
// iWinId: widget id
// iArg: not defined
// cArg: text
#define PUKE_BUTTON_SET_TEXT_ACK -1300
// Desc: set button to pixmap
// iWinId: window id
// iArg: not defined
// cArg: path to pixmap
#define PUKE_BUTTON_SET_PIXMAP 1305
// Desc: ack for set pixmap
// iWinId: widget id
// iArg: pixmap()->isNull()
// cArg: not defined
#define PUKE_BUTTON_SET_PIXMAP_ACK -1305
// Desc: set if button resizes with content changes
// iWinId: window id
// iArg: reisze, 0 false, 1 true
// cArg: not defined
#define PUKE_BUTTON_SET_AUTORESIZE 1310
// Desc: ack for autreisze
// iWinId: widget id
// iArg: autoresize()
// cArg: not defined
#define PUKE_BUTTON_SET_AUTORESIZE_ACK -1310
// Desc: button was pressed, not used
// iWinId: not defined
// iArg: not defined
// cArg: not define
#define PUKE_BUTTON_PRESSED 1350
// Desc: signal button was pressed
// iWinId: winid
// iArg: not define
// cArg: not defined
#define PUKE_BUTTON_PRESSED_ACK -1350
// Desc: button was relased, not used
// iWinId: not defined
// iArg: not defined
// cArg: not define
#define PUKE_BUTTON_RELEASED 1351
// Desc: signal button was released
// iWinId: winid
// iArg: not define
// cArg: not defined
#define PUKE_BUTTON_RELEASED_ACK -1351
// Desc: button was clicked, not used
// iWinId: not defined
// iArg: not defined
// cArg: not define
#define PUKE_BUTTON_CLICKED 1352
// Desc: signal button was clicked
// iWinId: winid
// iArg: not defined
// cArg: not defined
#define PUKE_BUTTON_CLICKED_ACK -1352
// Desc: button was toggled, not used
// iWinId: not defined
// iArg: not defined
// cArg: not define
#define PUKE_BUTTON_TOGGLED 1353
// Desc: signal button was toggled
// iWinId: winid
// iArg: not define
// cArg: not defined
#define PUKE_BUTTON_TOGGLED_ACK -1353
//------------------------------------------------
// Desc: set's the range of the control
// iWinId: window id
// iArg: two packed short ints. Lower is lower, upper is upper
// cArg: not define
#define PUKE_KSPROGRESS_SET_RANGE 1400
// Desc: ack set's the range of the control
// iWinId: window id
// iArg: not define
// cArg: not defined
#define PUKE_KSPROGRESS_SET_RANGE_ACK -1400
// Desc: set the top text line
// iWinId: window id
// iArg: not define
// cArg: top line
#define PUKE_KSPROGRESS_SET_TOPTEXT 1410
// Desc: ack set the top text line
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_KSPROGRESS_SET_TOPTEXT_ACK -1410
// Desc: set the bottom text line
// iWinId: window id
// iArg: not define
// cArg: bottom line
#define PUKE_KSPROGRESS_SET_BOTTEXT 1415
// Desc: ack set the top text line
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_KSPROGRESS_SET_BOTTEXT_ACK -1415
// Desc: set status value
// iWinId: window id
// iArg: not define
// cArg: current value
#define PUKE_KSPROGRESS_SET_VALUE 1420
// Desc: ack set the top text line
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_KSPROGRESS_SET_VALUE_ACK -1420
// Desc: cancel pressed, typically only ack sent.
// iWinId: window id
// iArg: not define
// cArg: current value
#define PUKE_KSPROGRESS_CANCEL 1425
// Desc: send message saying cancel button was pressed
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_KSPROGRESS_CANCEL_ACK -1425
// TQTable View at 1500
// none yet
// TQListBox at 1600
// Desc: insert string item
// iWinId: window id
// iArg: number of items now in list
// cArg: undef
#define PUKE_LISTBOX_INSERT 1600
// Desc: insert string item ack
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_INSERT_ACK -1600
// Desc: insert string item in sorted order
// iWinId: window id
// iArg: number of items in list
// cArg: undef
#define PUKE_LISTBOX_INSERT_SORT 1605
// Desc: ack insert string item in sorted order
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_INSERT_SORT_ACK -1605
// Desc: insert pixmap
// iWinId: window id
// iArg: not defined
// cArg: file name
#define PUKE_LISTBOX_INSERT_PIXMAP 1610
// Desc: ack insert pixmap
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_INSERT_PIXMAP_ACK -1610
// Desc: highligth number
// iWinId: window id
// iArg: item index to highlight
// cArg: undef
#define PUKE_LISTBOX_HIGHLIGHT 1615
// Desc: ack
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_HIGHLIGHT_ACK -1615
// Desc: remove number
// iWinId: window id
// iArg: item index to remove
// cArg: undef
#define PUKE_LISTBOX_REMOVE 1620
// Desc: ack
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_REMOVE_ACK -1620
// Desc: Get text from item number
// iWinId: window id
// iArg: list item
// cArg: not defined
#define PUKE_LISTBOX_GETTEXT 1625
// Desc: ack for get text with cArg set to text
// iWinId: window id
// iArg: 1 for sucsess, 0 for failure
// cArg: text
#define PUKE_LISTBOX_GETTEXT_ACK -1625
// Desc: Clear list box
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_CLEAR 1630
// Desc: ack for clear list box
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_CLEAR_ACK -1630
// Desc: set scroll bar
// iWinId: window id
// iArg: bool, enable/disable
// cArg: undef
#define PUKE_LISTBOX_SET_SCROLLBAR 1635
// Desc: set scroll bar ack
// iWinId: window id
// iArg: undef
// cArg: undef
#define PUKE_LISTBOX_SET_SCROLLBAR_ACK -1635
// Desc: set auto scroll bar
// iWinId: window id
// iArg: bool, enable/disable
// cArg: undef
#define PUKE_LISTBOX_SET_AUTO_SCROLLBAR 1636
// Desc: set auto scroll bar ack
// iWinId: window id
// iArg: undef
// cArg: undef
#define PUKE_LISTBOX_SET_AUTO_SCROLLBAR_ACK -1636
// Desc: item highlighted, not used signal to dsirc
// iWinId: undef
// iArg: undef
// cArg: undef
#define PUKE_LISTBOX_HIGHLIGHTED 1690
// Desc: item highlighted
// iWinId: window id
// iArg: index
// cArg: contents
#define PUKE_LISTBOX_HIGHLIGHTED_ACK -1690
// Desc: item selected
// iWinId: window id
// iArg: index
// cArg: contents
#define PUKE_LISTBOX_SELECTED 1690
// Desc: send message saying cancel button was pressed
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LISTBOX_SELECTED_ACK -1690
// *** 1700 goes to the Plabel
// Desc: Set label to text in carg
// iWinId: window id
// iArg: not defined
// cArg: text to be set to
#define PUKE_LABEL_SETTEXT 1700
// Desc: Set label to text in carg, ack
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LABEL_SETTEXT_ACK -1700
// Desc: Set label pixmap specified by filane name
// iWinId: window id
// iArg: not defined
// cArg: filena,me for pixmap
#define PUKE_LABEL_SETPIXMAP 1705
// Desc: Set label pixmap specified by filane name ACK
// iWinId: window id
// iArg: not defined
// cArg: not defined
#define PUKE_LABEL_SETPIXMAP_ACK -1705
// Desc: Set label to movie specified by filename
// iWinId: window id
// iArg: not defined
// cArg: movie's filename
#define PUKE_LABEL_SETMOVIE 1710
// Desc: Set label to movie specified by filename, ACK
// iWinId: window id
// iArg: not defined
// cArg: not deefine
#define PUKE_LABEL_SETMOVIE_ACK -1710
// Desc: Set label's allignment
// iWinId: window id
// iArg: alignment
// cArg: not defined
#define PUKE_LABEL_SETALIGNMENT 1715
// Desc: Set label's allignment, ACK
// iWinId: window id
// iArg: alignment
// cArg: not defined
#define PUKE_LABEL_SETALIGNMENT_ACK -1715
// -----------------------------------------------------------------------
// PMenuData
// Desc: Inserts newtext menu item
// iWinId: window id
// iArg: keyboard accelerator (-1 for none)
// cArg: Text
#define PUKE_MENUDATA_INSERT_TEXT 1800
// Desc: ack for insert
// iWinId: window id
// iArg: object id
// cArg: undef
#define PUKE_MENUDATA_INSERT_TEXT_ACK -1800
// Desc: Inserts new pixmap into menu
// iWinId: window id
// iArg: keyboard accelerator (-1 for none)
// cArg: Text
#define PUKE_MENUDATA_INSERT_PIXMAP 1801
// Desc: ack for insert
// iWinId: window id
// iArg: object id
// cArg: undef
#define PUKE_MENUDATA_INSERT_PIXMAP_ACK -1801
// Desc: Item got activated, not used, only ack
// iWinId: undef
// iArg: undef
// cArg: uidef
#define PUKE_POPUPMENU_ACTIVATED 1805
// Desc: Item got activate
// iWinId: window id
// iArg: item id
// cArg: undef
#define PUKE_POPUPMENU_ACTIVATED_ACK -1805
// Desc: Popup to current cursor position
// iWinId: menu id
// iArg: undef
// cArg: uidef
#define PUKE_POPUPMENU_POPUP_CURRENT 1810
// Desc: Ack for popup
// iWinId: window id
// iArg: 1 for success
// cArg: undef
#define PUKE_POPUPMENU_POPUP_CURRENT_ACK -1810
// Desc: Remvoes an item from a popup menu
// iWinId: menu id
// iArg: undef
// cArg: uidef
#define PUKE_MENUDATA_REMOVE_ITEM 1815
// Desc: Ack for remove item
// iWinId: window id
// iArg: 1 for success
// cArg: undef
#define PUKE_MENUDATA_REMOVE_ITEM_ACK -1815
// -----------------------------------------------------------------------
// PAMenuData
// Desc: is the item in the top of the list?
// iWinId: window id
// iArg: index
// cArg: not defined
#define PUKE_ALISTBOX_ISTOP 1900
// Desc: ack for istop
// iWinId: window id
// iArg: 1 for top, 0 for bottom
// cArg: not defined
#define PUKE_ALISTBOX_ISTOP_ACK -1900
// Desc: set green highligh (voice)
// iWinId: window id
// iArg: highligh, 1 for set, 0 for not
// cArg: string
#define PUKE_ALISTBOX_SMALL_HIGHLIGHT 1905
// Desc: ack for set green highligh
// iWinId: window id
// iArg: 0 for success, 1 for failure
// cArg: not defined
#define PUKE_ALISTBOX_SMALL_HIGHLIGHT_ACK -1905
// Desc: set red highligh and raise to the top (op)
// iWinId: window id
// iArg: highlight, 1 for set, 0 for remove
// cArg: string
#define PUKE_ALISTBOX_BIG_HIGHLIGHT 1910
// Desc: ack for set red and raise
// iWinId: window id
// iArg: 0 for success, 1 for failure
// cArg: not defined
#define PUKE_ALISTBOX_BIG_HIGHLIGHT_ACK -1910
// Desc: finds nick index
// iWinId: window id
// iArg: not defined
// cArg: string
#define PUKE_ALISTBOX_FIND_NICK 1915
// Desc: ack for find nick
// iWinId: window id
// iArg: index
// cArg: not defined
#define PUKE_ALISTBOX_FIND_NICK_ACK -1915
// -----------------------------------------------------------------------
// PTabDialog
// Desc: add Widget defined by iArg's widget id
// iWinId: window id
// iArg: widget to add, widget id, in current fd
// cArg: not defined
#define PUKE_TABDIALOG_ADDTAB 2001
// Desc: ack for istop
// iWinId: window id
// iArg: 1 for failure, 0 for success
// cArg: not defined
#define PUKE_TABDIALOG_ADDTAB_ACK -2001
// -----------------------------------------------------------------------
// PKSircListBox
// Desc: is the item in the top of the list?
// iWinId: window id
// iArg: index
// cArg: not defined
#define PUKE_KSIRCLISTBOX_TOBOTTOM 2100
// Desc: ack for istop
// iWinId: window id
// iArg: 1 for top, 0 for bottom
// cArg: not defined
#define PUKE_KSIRCLISTBOX_TOBOTTOM_ACK -2100
// 2200 for PKFileDialog
// 2300 for PObjFinder
// ***********************************************************************
// ***********************************************************************
//
// Base commands are done, next describes Widget's
//
// OBJECT base class
#define PWIDGET_OBJECT 1
// WIDGET defines a base TQWidget class
#define PWIDGET_WIDGET 2
// FRAME defines a base class
#define PWIDGET_FRAME 3
// LINED defines the simple SLE
#define PWIDGET_LINED 4
// BUTTON defines the abstract class TQButton
#define PWIDGET_BUTTON 5
// PUSH defined the push button
#define PWIDGET_PUSHBT 6
// Progress window for dcc and stuff
#define PWIDGET_KSPROGRESS 7
// Table view, not really used for much, base class for lots
#define PWIDGET_TABLEVW 8
// List box
#define PWIDGET_LISTBOX 9
// Label
#define PWIDGET_LABEL 10
// BoxLayout
#define POBJECT_LAYOUT 11
// MenuData
#define PWIDGET_MENUDATA 12
// PopupMenu
#define PWIDGET_POPMENU 13
// PAListBox
#define PWIDGET_ALISTBOX 14
// PKSircListBox
#define PWIDGET_KSIRCLISTBOX 15
// PTabDialog
#define PWIDGET_TABDIALOG 16
// PKFileDialog
#define PWIDGET_KFILEDIALOG 17
// PObjFinder
#define PWIDGET_OBJFINDER 18
// Group layout commands exist between 10000 and 11000
// Desc: create new box layout
// iWinId: PWidget parent
// iArg: 2 shorts, short[0] direction, short[1] border
// cArg: random character string
#define PUKE_LAYOUT_NEW 11000
// Desc: ack for box layout
// iWinId: Layout ID.
// iArg: not define
// cArg: same random m character string as PUKE_LAYOUT_NEW
#define PUKE_LAYOUT_NEW_ACK -11000
#define PUKE_LAYOUT_ADDLAYOUT 11005
#define PUKE_LAYOUT_ADDLAYOUT_ACK -11005
// Desc: add widget into layout manager
// iWinId: Layout Manager to add widget too
// iArg: Widget Id to be added
// cArg: 2 characters, char[0] strech, char[1] alignment
#define PUKE_LAYOUT_ADDWIDGET 11010
// Desc: ack for add widget
// iWinId: Layout manager
// iArg: not defined
// cArg: not define
#define PUKE_LAYOUT_ADDWIDGET_ACK -11010
// Desc: adds a strut for the current box, ie can'be be bigger then int
// iWinId: Layout Manager to add strut
// iArg: strut size
// cArg: not define
#define PUKE_LAYOUT_ADDSTRUT 11015
// Desc: ack for strut add widget
// iWinId: Layout manager
// iArg: not defined
// cArg: not define
#define PUKE_LAYOUT_ADDSTRUT_ACK -11015
// Desc: activates layout management, like show() for widget
// iWinId: Layout Manager to activate
// iArg: undef
// cArg: undef
#define PUKE_LAYOUT_ACTIVATE 11020
// Desc: ack for strut add widget
// iWinId: Layout manager
// iArg: 1 on failure, 0 on success
// cArg: not define
#define PUKE_LAYOUT_ACTIVATE_ACK -11020
/*
* ----------------------------------------------------------------------
* persistant objects
*/
#define PUKE_CONTROLLER 1
|