summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/QMenuBar.cs
blob: 228cff7fc856ae8b64b7681cf063bfaf780b8af5 (plain)
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
// TTQMenuBar.cs - A Qt to C# binding.
//
// Copyright (C) 2002  Adam Treat (manyoso@yahoo.com)
//
// 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 2
// 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, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
//
// Regenerated by Adam Treat on August 03 2002
//
// TODO
// o Override Dispose method, make sure slots are disconnected.

namespace Qt {

    using Qt;
    using System;
	using System.Collections;
    using System.Runtime.InteropServices;

    public class TTQMenuBar : TTQFrame, ITQMenuData, IDisposable {

		private Hashtable menuConnections;

        public Hashtable MenuConnections {
			get { return menuConnections; }
		}

        public enum Separator {
            Never = 0,
            InWindowsStyle = 1
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_new_QMenuBar (IntPtr parent, string name);
        public TTQMenuBar (TTQWidget parent, string name) : this (TQNull.Instance)
        {
            qparent = parent;
            if (qparent == null) parent = new TTQWidget (IntPtr.Zero);
            rawObject = qt_new_QMenuBar (parent.RawObject, name);
            if (qparent == null) RegisterObject (this);
            else qparent.AddChild (this);
        }

        public TTQMenuBar () : this (new TTQWidget ()) {}

        public TTQMenuBar (TTQWidget parent) : this (parent, "") {}

        internal TTQMenuBar (IntPtr ptr) : this (TQNull.Instance)
        {
            rawObject = ptr;
            RegisterObject(this);
        }

        internal TTQMenuBar (TQNull dummy) : base (TQNull.Instance)
		{
			menuConnections = new Hashtable();
		}

        ~TTQMenuBar ()
        {
            Dispose (false);
        }

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_del_QMenuBar (IntPtr obj);
		internal override void Delete ()
		{
			if (deleted) return;

			qt_del_QMenuBar (rawObject);
			deleted = true;
		}

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_updateItem (IntPtr raw, int identifier);
        public void UpdateItem (int identifier)
        {
            qt_QMenuBar_updateItem (rawObject, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_show (IntPtr raw);
        public void Show ()
        {
            qt_QMenuBar_show (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_hide (IntPtr raw);
        public void Hide ()
        {
            qt_QMenuBar_hide (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuBar_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2);
        public bool EventFilter (TTQObject arg1, TTQEvent arg2)
        {
            return qt_QMenuBar_eventFilter (rawObject, arg1.RawObject, arg2.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuBar_heightForWidth (IntPtr raw, int arg1);
        public int HeightForWidth (int arg1)
        {
            return qt_QMenuBar_heightForWidth (rawObject, arg1);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern TTQMenuBar.Separator qt_QMenuBar_separator (IntPtr raw);
        public TTQMenuBar.Separator TheSeparator ()
        {
            return qt_QMenuBar_separator (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_setSeparator (IntPtr raw, TTQMenuBar.Separator when);
        public void SetSeparator (TTQMenuBar.Separator when)
        {
            qt_QMenuBar_setSeparator (rawObject, when);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_setDefaultUp (IntPtr raw, bool arg1);
        public void SetDefaultUp (bool arg1)
        {
            qt_QMenuBar_setDefaultUp (rawObject, arg1);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuBar_isDefaultUp (IntPtr raw);
        public bool IsDefaultUp ()
        {
            return qt_QMenuBar_isDefaultUp (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuBar_customWhatsThis (IntPtr raw);
        public bool CustomWhatsThis ()
        {
            return qt_QMenuBar_customWhatsThis (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuBar_sizeHint (IntPtr raw);
        public TTQSize SizeHint ()
        {
            return (TTQSize)LookupObject (qt_QMenuBar_sizeHint (rawObject), typeof(TTQSize));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuBar_minimumSize (IntPtr raw);
        public TTQSize MinimumSize ()
        {
            return (TTQSize)LookupObject (qt_QMenuBar_minimumSize (rawObject), typeof(TTQSize));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuBar_minimumSizeHint (IntPtr raw);
        public TTQSize MinimumSizeHint ()
        {
            return (TTQSize)LookupObject (qt_QMenuBar_minimumSizeHint (rawObject), typeof(TTQSize));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_activateItemAt (IntPtr raw, int index);
        public void ActivateItemAt (int index)
        {
            qt_QMenuBar_activateItemAt (rawObject, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_initialize ();
        public static void Initialize ()
        {
            qt_QMenuBar_initialize ();
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_cleanup ();
        public static void Cleanup ()
        {
            qt_QMenuBar_cleanup ();
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_drawContents (IntPtr raw, IntPtr arg1);
        protected void DrawContents (TTQPainter arg1)
        {
            qt_QMenuBar_drawContents (rawObject, arg1.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_fontChange (IntPtr raw, IntPtr arg1);
        protected void FontChange (TTQFont arg1)
        {
            qt_QMenuBar_fontChange (rawObject, arg1.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_menuContentsChanged (IntPtr raw);
        protected void MenuContentsChanged ()
        {
            qt_QMenuBar_menuContentsChanged (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_menuStateChanged (IntPtr raw);
        protected void MenuStateChanged ()
        {
            qt_QMenuBar_menuStateChanged (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_styleChange (IntPtr raw, IntPtr arg1);
        protected void StyleChange (TTQStyle arg1)
        {
            qt_QMenuBar_styleChange (rawObject, arg1.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuBar_itemAtPos (IntPtr raw, IntPtr arg1);
        protected int ItemAtPos (TTQPoint arg1)
        {
            return qt_QMenuBar_itemAtPos (rawObject, arg1.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuBar_hidePopups (IntPtr raw);
        protected void HidePopups ()
        {
            qt_QMenuBar_hidePopups (rawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuBar_itemRect (IntPtr raw, int item);
        protected TTQRect ItemRect (int item)
        {
            return (TTQRect)LookupObject (qt_QMenuBar_itemRect (rawObject, item), typeof(TTQRect));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuBar_QMenuData (IntPtr raw);
        public IntPtr TTQMenuData ()
        {
            return qt_QMenuBar_QMenuData (rawObject);
        }

        // Begin interface methods.


		//********************* A temporary hack to divert connections to CSharpConnect *****************//

		// This makes my brain hurt!
		// :-) Mine too!

		public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index)
		{
			int id = InsertItem (text, identifier, index);
			SetAccel (accel, id);
			ConnectItem (id, receiver, member);
			return id;
		}

		public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index)
		{
			int id = InsertItem (icon, text, identifier, index);
			SetAccel (accel, id);
			ConnectItem (id, receiver, member);
			return id;
		}

		public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index)
		{
			int id = InsertItem (pixmap, identifier, index);
			SetAccel (accel, id);
			ConnectItem (id, receiver, member);
			return id;
		}

		public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index)
		{
			int id = InsertItem (icon, pixmap, identifier, index);
			SetAccel (accel, id);
			ConnectItem (id, receiver, member);
			return id;
		}

		public bool ConnectItem (int identifier, TTQObject receiver, string member)
		{
			return Qt.TTQMenuData.ConnectItem (this, TTQMenuData (), identifier, receiver, member);

		}

		public bool DisconnectItem (int identifier, TTQObject receiver, string member)
		{
			return Qt.TTQMenuData.DisconnectItem (this, TTQMenuData (), identifier, receiver, member);
		}

		//********************* A temporary hack to divert connections to CSharpConnect *****************//


        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern uint qt_QMenuData_count (IntPtr raw);
        public uint Count ()
        {
            return qt_QMenuData_count (TTQMenuData ());
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index);
        public int InsertItem (string text, int identifier, int index)
        {
            return qt_QMenuData_insertItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index);
        public int InsertItem (TTQIconSet icon, string text, int identifier, int index)
        {
            return qt_QMenuData_insertItem5 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index);
        public int InsertItem (string text, TTQPopupMenu popup, int identifier, int index)
        {
            return qt_QMenuData_insertItem6 (TTQMenuData (), new TTQString (text).RawObject, popup.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index);
        public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier, int index)
        {
            return qt_QMenuData_insertItem7 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, popup.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index);
        public int InsertItem (TTQPixmap pixmap, int identifier, int index)
        {
            return qt_QMenuData_insertItem8 (TTQMenuData (), pixmap.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index);
        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier, int index)
        {
            return qt_QMenuData_insertItem9 (TTQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index);
        public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index)
        {
            return qt_QMenuData_insertItem10 (TTQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index);
        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index)
        {
            return qt_QMenuData_insertItem11 (TTQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index);
        public int InsertItem (TTQWidget widget, int identifier, int index)
        {
            return qt_QMenuData_insertItem12 (TTQMenuData (), widget.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index);
        public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier, int index)
        {
            return qt_QMenuData_insertItem13 (TTQMenuData (), icon.RawObject, custom.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index);
        public int InsertItem (TTQCustomMenuItem custom, int identifier, int index)
        {
            return qt_QMenuData_insertItem14 (TTQMenuData (), custom.RawObject, identifier, index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_insertSeparator (IntPtr raw, int index);
        public int InsertSeparator (int index)
        {
            return qt_QMenuData_insertSeparator (TTQMenuData (), index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_removeItem (IntPtr raw, int identifier);
        public void RemoveItem (int identifier)
        {
            qt_QMenuData_removeItem (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_removeItemAt (IntPtr raw, int index);
        public void RemoveItemAt (int index)
        {
            qt_QMenuData_removeItemAt (TTQMenuData (), index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_clear (IntPtr raw);
        public void Clear ()
        {
            qt_QMenuData_clear (TTQMenuData ());
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier);
        public TTQKeySequence Accel (int identifier)
        {
            return (TTQKeySequence)LookupObject (qt_QMenuData_accel (TTQMenuData (), identifier), typeof(TTQKeySequence));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier);
        public void SetAccel (TTQKeySequence key, int identifier)
        {
            qt_QMenuData_setAccel (TTQMenuData (), key.RawObject, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier);
        public TTQIconSet IconSet (int identifier)
        {
            return (TTQIconSet)LookupObject (qt_QMenuData_iconSet (TTQMenuData (), identifier), typeof(TTQIconSet));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier);
        public string Text (int identifier)
        {
			TTQString qstr = new TTQString (qt_QMenuData_text (TTQMenuData (), identifier));
			string str = qstr.Latin1 ();
			qstr.Dispose ();
			return str;
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier);
        public TTQPixmap Pixmap (int identifier)
        {
            return (TTQPixmap)LookupObject (qt_QMenuData_pixmap (TTQMenuData (), identifier), typeof(TTQPixmap));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1);
        public void SetWhatsThis (int identifier, string arg1)
        {
            qt_QMenuData_setWhatsThis (TTQMenuData (), identifier, new TTQString (arg1).RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier);
        public string WhatsThis (int identifier)
        {
			TTQString qstr = new TTQString (qt_QMenuData_whatsThis (TTQMenuData (), identifier));
			string str = qstr.Latin1 ();
			qstr.Dispose ();
			return str;
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text);
        public void ChangeItem (int identifier, string text)
        {
            qt_QMenuData_changeItem (TTQMenuData (), identifier, new TTQString (text).RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap);
        public void ChangeItem (int identifier, TTQPixmap pixmap)
        {
            qt_QMenuData_changeItem1 (TTQMenuData (), identifier, pixmap.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text);
        public void ChangeItem (int identifier, TTQIconSet icon, string text)
        {
            qt_QMenuData_changeItem2 (TTQMenuData (), identifier, icon.RawObject, new TTQString (text).RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap);
        public void ChangeItem (int identifier, TTQIconSet icon, TTQPixmap pixmap)
        {
            qt_QMenuData_changeItem3 (TTQMenuData (), identifier, icon.RawObject, pixmap.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier);
        public void ChangeItem (string text, int identifier)
        {
            qt_QMenuData_changeItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier);
        public void ChangeItem (TTQPixmap pixmap, int identifier)
        {
            qt_QMenuData_changeItem5 (TTQMenuData (), pixmap.RawObject, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier);
        public void ChangeItem (TTQIconSet icon, string text, int identifier)
        {
            qt_QMenuData_changeItem6 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuData_isItemActive (IntPtr raw, int identifier);
        public bool IsItemActive (int identifier)
        {
            return qt_QMenuData_isItemActive (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuData_isItemEnabled (IntPtr raw, int identifier);
        public bool IsItemEnabled (int identifier)
        {
            return qt_QMenuData_isItemEnabled (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_setItemEnabled (IntPtr raw, int identifier, bool enable);
        public void SetItemEnabled (int identifier, bool enable)
        {
            qt_QMenuData_setItemEnabled (TTQMenuData (), identifier, enable);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuData_isItemChecked (IntPtr raw, int identifier);
        public bool IsItemChecked (int identifier)
        {
            return qt_QMenuData_isItemChecked (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_setItemChecked (IntPtr raw, int identifier, bool check);
        public void SetItemChecked (int identifier, bool check)
        {
            qt_QMenuData_setItemChecked (TTQMenuData (), identifier, check);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_indexOf (IntPtr raw, int identifier);
        public int IndexOf (int identifier)
        {
            return qt_QMenuData_indexOf (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_idAt (IntPtr raw, int index);
        public int IdAt (int index)
        {
            return qt_QMenuData_idAt (TTQMenuData (), index);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_setId (IntPtr raw, int index, int identifier);
        public void SetId (int index, int identifier)
        {
            qt_QMenuData_setId (TTQMenuData (), index, identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern bool qt_QMenuData_setItemParameter (IntPtr raw, int identifier, int param);
        public bool SetItemParameter (int identifier, int param)
        {
            return qt_QMenuData_setItemParameter (TTQMenuData (), identifier, param);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern int qt_QMenuData_itemParameter (IntPtr raw, int identifier);
        public int ItemParameter (int identifier)
        {
            return qt_QMenuData_itemParameter (TTQMenuData (), identifier);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier);
        public TTQMenuItem FindItem (int identifier)
        {
            return (TTQMenuItem)LookupObject (qt_QMenuData_findItem (TTQMenuData (), identifier), typeof(TTQMenuItem));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent);
        public TTQMenuItem FindItem (int identifier, TTQMenuData parent)
        {
            return (TTQMenuItem)LookupObject (qt_QMenuData_findItem1 (TTQMenuData (), identifier, parent.RawObject), typeof(TTQMenuItem));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index);
        public TTQMenuItem FindPopup (TTQPopupMenu arg1, int[] index)
        {
            return (TTQMenuItem)LookupObject (qt_QMenuData_findPopup (TTQMenuData (), arg1.RawObject, index), typeof(TTQMenuItem));
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1);
        protected void MenuInsPopup (TTQPopupMenu arg1)
        {
            qt_QMenuData_menuInsPopup (TTQMenuData (), arg1.RawObject);
        }

        [DllImport("libqtc", CharSet=CharSet.Ansi)]
        private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1);
        protected void MenuDelPopup (TTQPopupMenu arg1)
        {
            qt_QMenuData_menuDelPopup (TTQMenuData (), arg1.RawObject);
        }

        public int InsertItem (string text, TTQObject receiver, string member)
        {
            return InsertItem(text, receiver, member, new TTQKeySequence ());
        }

        public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel)
        {
            return InsertItem(text, receiver, member, accel, (int) -1);
        }

        public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier)
        {
            return InsertItem(text, receiver, member, accel, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member)
        {
            return InsertItem(icon, text, receiver, member, new TTQKeySequence ());
        }

        public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel)
        {
            return InsertItem(icon, text, receiver, member, accel, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier)
        {
            return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member)
        {
            return InsertItem(pixmap, receiver, member, new TTQKeySequence ());
        }

        public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel)
        {
            return InsertItem(pixmap, receiver, member, accel, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier)
        {
            return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member)
        {
            return InsertItem(icon, pixmap, receiver, member, new TTQKeySequence ());
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel)
        {
            return InsertItem(icon, pixmap, receiver, member, accel, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier)
        {
            return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1);
        }

        public int InsertItem (string text)
        {
            return InsertItem(text, (int) -1);
        }

        public int InsertItem (string text, int identifier)
        {
            return InsertItem(text, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text)
        {
            return InsertItem(icon, text, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text, int identifier)
        {
            return InsertItem(icon, text, identifier, (int) -1);
        }

        public int InsertItem (string text, TTQPopupMenu popup)
        {
            return InsertItem(text, popup, (int) -1);
        }

        public int InsertItem (string text, TTQPopupMenu popup, int identifier)
        {
            return InsertItem(text, popup, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup)
        {
            return InsertItem(icon, text, popup, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier)
        {
            return InsertItem(icon, text, popup, identifier, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap)
        {
            return InsertItem(pixmap, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap, int identifier)
        {
            return InsertItem(pixmap, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap)
        {
            return InsertItem(icon, pixmap, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier)
        {
            return InsertItem(icon, pixmap, identifier, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup)
        {
            return InsertItem(pixmap, popup, (int) -1);
        }

        public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier)
        {
            return InsertItem(pixmap, popup, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup)
        {
            return InsertItem(icon, pixmap, popup, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier)
        {
            return InsertItem(icon, pixmap, popup, identifier, (int) -1);
        }

        public int InsertItem (TTQWidget widget)
        {
            return InsertItem(widget, (int) -1);
        }

        public int InsertItem (TTQWidget widget, int identifier)
        {
            return InsertItem(widget, identifier, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom)
        {
            return InsertItem(icon, custom, (int) -1);
        }

        public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier)
        {
            return InsertItem(icon, custom, identifier, (int) -1);
        }

        public int InsertItem (TTQCustomMenuItem custom)
        {
            return InsertItem(custom, (int) -1);
        }

        public int InsertItem (TTQCustomMenuItem custom, int identifier)
        {
            return InsertItem(custom, identifier, (int) -1);
        }

        public int InsertSeparator ()
        {
            return InsertSeparator((int) -1);
        }

        public TTQMenuItem FindPopup (TTQPopupMenu arg1)
        {
            return FindPopup(arg1, new int[]{0});
        }
    }
}