summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KToolBar.java
blob: f6a5c86d71d66111a5df1650fe86583cb1ae15d0 (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
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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMainWindow;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import org.kde.qt.TQPopupMenu;
import org.kde.qt.TQPixmap;
import org.kde.qt.TQSize;
import org.kde.qt.TQSizePolicy;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQShowEvent;
import org.kde.qt.TQEvent;
import org.kde.qt.TQIconSet;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;
import org.kde.qt.TQDomElement;
import org.kde.qt.TQChildEvent;
import org.kde.qt.TQToolBar;

/**

 A KDE-style toolbar.
 KToolBar can be dragged around in and between different docks.
 A KToolBar can contain all sorts of widgets.
 KToolBar can be used as a standalone widget, but KMainWindow
 provides easy factories and management of one or more toolbars.
 Once you have a KToolBar object, you can insert items into it with the
 insert... methods, or remove them with the removeItem() method. This
 can be done at any time; the toolbar will be automatically updated.
 There are also many methods to set per-child properties like alignment
 and toggle behavior.
 KToolBar uses a global config group to load toolbar settings on
 construction. It will reread this config group on a
 KApplication.appearanceChanged() signal.
 See {@link KToolBarSignals} for signals emitted by KToolBar
		@author Reginald Stadlbauer <reggie@kde.org>, Stephan Kulow <coolo@kde.org>, Sven Radej <radej@kde.org>.
  
		@short Floatable toolbar with auto resize.

*/
public class KToolBar extends TQToolBar  {
	protected KToolBar(Class dummy){super((Class) null);}
	public static final int IconOnly = 0;
	public static final int IconTextRight = 1;
	public static final int TextOnly = 2;
	public static final int IconTextBottom = 3;

	/**	
		 Possible bar positions.
		   		@short    Possible bar positions.
	*/
	public static final int Unmanaged = 0;
	public static final int Floating = 1;
	public static final int Top = 2;
	public static final int Bottom = 3;
	public static final int Right = 4;
	public static final int Left = 5;
	public static final int Flat = 6;

	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Normal constructor.
		 This constructor is used by the XML-GUI. If you use it, you need
		 to call TQMainWindow.addToolBar to specify the position of the toolbar.
		 So it's simpler to use the other constructor.
			 The toolbar will read in various global config settings for
		 things like icon size and text position, etc.  However, some of
		 the settings will be honored only if <code>honorStyle</code> is set to
		 true.  All other toolbars will be IconOnly and use Medium icons.
			@param parent The standard toolbar parent (usually a
		 KMainWindow)
			@param name The standard internal name
			@param honorStyle If true, then global settings for IconSize and IconText will be honored
			@param readConfig whether to apply the configuration (global and application-specific)
		   		@short    Normal constructor.
	*/
	public KToolBar(TQWidget parent, String name, boolean honorStyle, boolean readConfig) {
		super((Class) null);
		newKToolBar(parent,name,honorStyle,readConfig);
	}
	private native void newKToolBar(TQWidget parent, String name, boolean honorStyle, boolean readConfig);
	public KToolBar(TQWidget parent, String name, boolean honorStyle) {
		super((Class) null);
		newKToolBar(parent,name,honorStyle);
	}
	private native void newKToolBar(TQWidget parent, String name, boolean honorStyle);
	public KToolBar(TQWidget parent, String name) {
		super((Class) null);
		newKToolBar(parent,name);
	}
	private native void newKToolBar(TQWidget parent, String name);
	public KToolBar(TQWidget parent) {
		super((Class) null);
		newKToolBar(parent);
	}
	private native void newKToolBar(TQWidget parent);
	/**	
		 Constructor for non-XML-GUI applications.
			 The toolbar will read in various global config settings for
		 things like icon size and text position, etc.  However, some of
		 the settings will be honored only if <code>honorStyle</code> is set to
		 true.  All other toolbars will be IconOnly and use Medium icons.
			@param parentWindow The window that should be the parent of this toolbar
			@param dock The position of the toolbar. Usually TQMainWindow.Top.
			@param newLine If true, start a new line in the dock for this toolbar.
			@param name The standard internal name
			@param honorStyle If true, then global settings for IconSize and IconText will be honored
			@param readConfig whether to apply the configuration (global and application-specific)
		   		@short    Constructor for non-XML-GUI applications.
	*/
	public KToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle, boolean readConfig) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name,honorStyle,readConfig);
	}
	private native void newKToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle, boolean readConfig);
	public KToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name,honorStyle);
	}
	private native void newKToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle);
	public KToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name);
	}
	private native void newKToolBar(TQMainWindow parentWindow, int dock, boolean newLine, String name);
	public KToolBar(TQMainWindow parentWindow, int dock, boolean newLine) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine);
	}
	private native void newKToolBar(TQMainWindow parentWindow, int dock, boolean newLine);
	public KToolBar(TQMainWindow parentWindow, int dock) {
		super((Class) null);
		newKToolBar(parentWindow,dock);
	}
	private native void newKToolBar(TQMainWindow parentWindow, int dock);
	/**	
		 Constructor for non-XML-GUI applications.
			 The toolbar will read in various global config settings for
		 things like icon size and text position, etc.  However, some of
		 the settings will be honored only if <code>honorStyle</code> is set to
		 true.  All other toolbars will be IconOnly and use Medium icons.
			@param parentWindow The window that should be the parent of this toolbar
			@param dock Another widget than the mainwindow to dock toolbar to.
			@param newLine If true, start a new line in the dock for this toolbar.
			@param name The standard internal name
			@param honorStyle If true, then global settings for IconSize and IconText will be honored
			@param readConfig whether to apply the configuration (global and application-specific)
		   		@short    Constructor for non-XML-GUI applications.
	*/
	public KToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name, boolean honorStyle, boolean readConfig) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name,honorStyle,readConfig);
	}
	private native void newKToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name, boolean honorStyle, boolean readConfig);
	public KToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name, boolean honorStyle) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name,honorStyle);
	}
	private native void newKToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name, boolean honorStyle);
	public KToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine,name);
	}
	private native void newKToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine, String name);
	public KToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine) {
		super((Class) null);
		newKToolBar(parentWindow,dock,newLine);
	}
	private native void newKToolBar(TQMainWindow parentWindow, TQWidget dock, boolean newLine);
	public KToolBar(TQMainWindow parentWindow, TQWidget dock) {
		super((Class) null);
		newKToolBar(parentWindow,dock);
	}
	private native void newKToolBar(TQMainWindow parentWindow, TQWidget dock);
	/**	
		 Insert a button (a KToolBarButton) with a pixmap.  The
		 pixmap is loaded by the button itself based on the global icon
		 settings.
			 You should connect to one or more signals in KToolBar:
		 clicked() , pressed() , released() , or
		 highlighted()  and if the button is a toggle button
		 ( setToggle() ) toggled() .  Those signals have <code>id</code>
		 of a button that caused the signal.  If you want to bind a popup
		 to button, see setButton().
			@param icon The name of the icon to use as the active pixmap
			@param id The id of this button
			@param enabled Enable or disable the button at startup
			@param text The tooltip or toolbar text (depending on state)
			@param index The position of the button. (-1 = at end).
			@param _instance instance this button will belong to
				@return The item index.
   
		@short    Insert a button (a KToolBarButton) with a pixmap.
	*/
	public native int insertButton(String icon, int id, boolean enabled, String text, int index, KInstanceInterface _instance);
	public native int insertButton(String icon, int id, boolean enabled, String text, int index);
	public native int insertButton(String icon, int id, boolean enabled, String text);
	public native int insertButton(String icon, int id, boolean enabled);
	public native int insertButton(String icon, int id);
	/**	
		 This is the same as above, but with specified signals and
		 slots to which this button will be connected.
			 You can add more signals with addConnection().
			@param icon The name of the icon to use as the active pixmap
			@param id The id of this button
			@param signal The signal to connect to
			@param receiver The slot's parent
			@param slot The slot to receive the signal specified in that argument.
			@param enabled Enable or disable the button at startup
			@param text The tooltip or toolbar text (depending on state)
			@param index The position of the button. (-1 = at end).
			@param _instance instance this button will belong to
				@return The item index.
   
		@short    This is the same as above, but with specified signals and  slots to which this button will be connected.
	*/
	public native int insertButton(String icon, int id, String signal, TQObject receiver, String slot, boolean enabled, String text, int index, KInstanceInterface _instance);
	public native int insertButton(String icon, int id, String signal, TQObject receiver, String slot, boolean enabled, String text, int index);
	public native int insertButton(String icon, int id, String signal, TQObject receiver, String slot, boolean enabled, String text);
	public native int insertButton(String icon, int id, String signal, TQObject receiver, String slot, boolean enabled);
	public native int insertButton(String icon, int id, String signal, TQObject receiver, String slot);
	/**	
		 Inserts a button (a KToolBarButton) with the specified
		 pixmap.  This pixmap will be used as the "active" one and the
		 disabled and default ones will be autogenerated.
			 It is recommended that you use the insertButton function that
		 allows you to specify the icon name rather then the pixmap
		 itself.  Specifying the icon name is much more flexible.
			 You should connect to one or more signals in KToolBar:
		 clicked() , pressed() , released() , or
		 highlighted()  and if the button is a toggle button
		 ( setToggle() ) toggled() .  Those signals have <code>id</code>
		 of a button that caused the signal.  If you want to bind a popup
		 to button, see setButton().
			@param pixmap The active pixmap
			@param id The id of this button
			@param enabled Enable or disable the button at startup
			@param text The tooltip or toolbar text (depending on state)
			@param index The position of the button. (-1 = at end).
				@return The item index.
   
		@short    Inserts a button (a KToolBarButton) with the specified  pixmap.
	*/
	public native int insertButton(TQPixmap pixmap, int id, boolean enabled, String text, int index);
	public native int insertButton(TQPixmap pixmap, int id, boolean enabled, String text);
	public native int insertButton(TQPixmap pixmap, int id, boolean enabled);
	public native int insertButton(TQPixmap pixmap, int id);
	/**	
		 This is the same as above, but with specified signals and
		 slots to which this button will be connected.
			 You can add more signals with addConnection().
			@param pixmap The name of the icon to use as the active pixmap
			@param id The id of this button
			@param signal The signal to connect to
			@param receiver The slot's parent
			@param slot The slot to receive the signal specified in that argument.
			@param enabled Enable or disable the button at startup
			@param text The tooltip or toolbar text (depending on state)
			@param index The position of the button. (-1 = at end).
				@return The item index.
   
		@short    This is the same as above, but with specified signals and  slots to which this button will be connected.
	*/
	public native int insertButton(TQPixmap pixmap, int id, String signal, TQObject receiver, String slot, boolean enabled, String text, int index);
	public native int insertButton(TQPixmap pixmap, int id, String signal, TQObject receiver, String slot, boolean enabled, String text);
	public native int insertButton(TQPixmap pixmap, int id, String signal, TQObject receiver, String slot, boolean enabled);
	public native int insertButton(TQPixmap pixmap, int id, String signal, TQObject receiver, String slot);
	/**	
		 Inserts a button with popupmenu.
			 Button will have small
		 triangle. You have to connect to popup's signals. The
		 signals KButton.pressed(), KButton.released(),
		 KButton.clicked() or KButton.doubleClicked() are <code>not</code>
		 emmited by
		 this button (see setDelayedPopup() for that).
		 You can add custom popups which inherit TQPopupMenu to get popups
		 with tables, drawings etc. Just don't fiddle with events there.
		   		@short    Inserts a button with popupmenu.
	*/
	public native int insertButton(String icon, int id, TQPopupMenu popup, boolean enabled, String _text, int index);
	public native int insertButton(String icon, int id, TQPopupMenu popup, boolean enabled, String _text);
	/**	
		 Inserts a button with popupmenu.
			 Button will have small
		 triangle. You have to connect to popup's signals. The
		 signals KButton.pressed(), KButton.released(),
		 KButton.clicked() or KButton.doubleClicked() are <code>not</code>
		 emmited by
		 this button (see setDelayedPopup() for that).
		 You can add custom popups which inherit TQPopupMenu to get popups
		 with tables, drawings etc. Just don't fiddle with events there.
		   		@short    Inserts a button with popupmenu.
	*/
	public native int insertButton(TQPixmap pixmap, int id, TQPopupMenu popup, boolean enabled, String _text, int index);
	public native int insertButton(TQPixmap pixmap, int id, TQPopupMenu popup, boolean enabled, String _text);
	/**	
		 Inserts a KLineEdit. You have to specify signals and slots to
		 which KLineEdit will be connected. KLineEdit has all slots TQLineEdit
		 has, plus signals KLineEdit.completion and KLineEdit.textRotation
		 KLineEdit can be set to autoresize itself to full free width
		 in toolbar, that is to last right aligned item. For that,
		 toolbar must be set to full width (which it is by default).
				@return Item index.
   
		@short    Inserts a KLineEdit.
		@see #setFullWidth
		@see #setItemAutoSized
		@see KLineEdit
	*/
	public native int insertLined(String text, int id, String signal, TQObject receiver, String slot, boolean enabled, String toolTipText, int size, int index);
	public native int insertLined(String text, int id, String signal, TQObject receiver, String slot, boolean enabled, String toolTipText, int size);
	public native int insertLined(String text, int id, String signal, TQObject receiver, String slot, boolean enabled, String toolTipText);
	public native int insertLined(String text, int id, String signal, TQObject receiver, String slot, boolean enabled);
	public native int insertLined(String text, int id, String signal, TQObject receiver, String slot);
	/**	
		 Inserts a KComboBox with list.
			 Can be writable, but cannot contain
		 pixmaps. By default inserting policy is AtBottom, i.e. typed items
		 are placed at the bottom of the list. Can be autosized. If the size
		 argument is specified as -1, the width of the combobox is automatically
		 computed.
				@return Item index.
   
		@short    Inserts a KComboBox with list.
		@see #setFullWidth
		@see #setItemAutoSized
		@see KComboBox
	*/
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index, int policy);
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index);
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size);
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext);
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled);
	public native int insertCombo(String[] list, int id, boolean writable, String signal, TQObject receiver, String slot);
	/**	
		 Insert a KComboBox with text.
			 The rest is the same as above.
				@return Item index.
   
		@short    Insert a KComboBox with text.
		@see #setItemAutoSized
		@see KComboBox
	*/
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index, int policy);
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index);
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext, int size);
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled, String tooltiptext);
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot, boolean enabled);
	public native int insertCombo(String text, int id, boolean writable, String signal, TQObject receiver, String slot);
	/**	
		 Inserts a separator into the toolbar with the given <code>id.</code>
				@return the separator's index
     
		@short    Inserts a separator into the toolbar with the given <code>id.</code>
	*/
	public native int insertSeparator(int index, int id);
	public native int insertSeparator(int index);
	public native int insertSeparator();
	/**	
		 Inserts a line separator into the toolbar with the given <code>id.</code>
				@return the separator's index
     
		@short    Inserts a line separator into the toolbar with the given <code>id.</code>
	*/
	public native int insertLineSeparator(int index, int id);
	public native int insertLineSeparator(int index);
	public native int insertLineSeparator();
	/**	
		 Inserts a user-defined widget.  The widget <code>must</code> have this
		 toolbar as its parent.
			 Widget must have a TQWidget for base class.  Widget can be
		 autosized to full width. If you forget about it, you can get a
		 pointer to this widget with getWidget().
				@return Item index.
   
		@short    Inserts a user-defined widget.
		@see #setItemAutoSized
	*/
	public native int insertWidget(int id, int width, TQWidget _widget, int index);
	public native int insertWidget(int id, int width, TQWidget _widget);
	/**	
		 Inserts an animated widget.  A KAnimWidget will be created
		 internally using the icon name you provide.
		 This will emit a signal (clicked()) whenever the
		 animation widget is clicked.
			@param id The id for this toolbar item
			@param receiver The parent of your slot
			@param slot The slot to receive the clicked() signal
			@param icons The name of the animation icon group to use
			@param index The item index
				@return The item index
   
		@short    Inserts an animated widget.
		@see #animatedWidget
	*/
	public native int insertAnimatedWidget(int id, TQObject receiver, String slot, String icons, int index);
	public native int insertAnimatedWidget(int id, TQObject receiver, String slot, String icons);
	/**	
		 This will return a pointer to the animated widget with the
		 given <code>id</code>, if it exists.
			@param id The id for the widget you want to get a pointer to
				@return A pointer to the current animated widget or 0L
   
		@short    This will return a pointer to the animated widget with the  given <code>id</code>, if it exists.
		@see #insertAnimatedWidget
	*/
	public native KAnimWidget animatedWidget(int id);
	/**	
		 Adds connections to items.
			 It is important that you
		 know the <code>id</code> of particular item. Nothing happens if you forget <code>id.</code>
		   		@short    Adds connections to items.
	*/
	public native void addConnection(int id, String signal, TQObject receiver, String slot);
	/**	
		 Enables/disables item.
		   		@short    Enables/disables item.
	*/
	public native void setItemEnabled(int id, boolean enabled);
	/**	
		 Sets the icon for a button.
			 Can be used while button is visible.
		   		@short    Sets the icon for a button.
	*/
	public native void setButtonIcon(int id, String _icon);
	/**	
		 Sets button pixmap.
			 Can be used while button is visible.
		   		@short    Sets button pixmap.
	*/
	public native void setButtonPixmap(int id, TQPixmap _pixmap);
	/**	
		 Sets a button icon from a TQIconSet.
			 Can be used while button is visible.
		   		@short    Sets a button icon from a TQIconSet.
	*/
	public native void setButtonIconSet(int id, TQIconSet iconset);
	/**	
		 Sets a delayed popup for a button.
			 Delayed popup is what you see in
		 Netscape Navigator's Previous and Next buttons: If you click them you
		 go back
		 or forth. If you press them long enough, you get a history-menu.
		 This is exactly what we do here.
			 You will insert a normal button with connection (or use signals from
		 toolbar):
		 <pre>
		 bar.insertButton(icon, id, SIGNAL("clicked ()"), this,
		                   SLOT (slotClick()), true, "click or wait for popup");
		 </pre>
		 And then add a delayed popup:
		 <pre>
		 bar.setDelayedPopup (id, historyPopup);
		 </pre>
			 Don't add delayed popups to buttons which have normal popups.
			 You may add popups which are derived from TQPopupMenu. You may
		 add popups that are already in the menu bar or are submenus of
		 other popups.
		   		@short    Sets a delayed popup for a button.
	*/
	public native void setDelayedPopup(int id, TQPopupMenu _popup, boolean toggle);
	public native void setDelayedPopup(int id, TQPopupMenu _popup);
	/**	
		 Turns a button into an autorepeat button.
			 Toggle buttons, buttons with menus, or
		 buttons with delayed menus cannot be made into autorepeat buttons.
		 Moreover, you can and will receive
		 only the signal clicked(), but not pressed() or released().
		 When the user presses this button, you will receive the signal clicked(),
		 and if the button is still pressed after some time,
		 you will receive more clicked() signals separated by regular
		 intervals.  Since this uses TQButton.setAutoRepeat() ,
		 I can't quantify 'some'.
		   		@short    Turns a button into an autorepeat button.
	*/
	public native void setAutoRepeat(int id, boolean flag);
	public native void setAutoRepeat(int id);
	/**	
		 Turns button into a toggle button if <code>flag</code> is true.
		   		@short    Turns button into a toggle button if <code>flag</code> is true.
	*/
	public native void setToggle(int id, boolean flag);
	public native void setToggle(int id);
	/**	
		 Toggles a togglebutton.
			 If the button is a toggle button  (see setToggle())
		 the button state will be toggled. This will also cause the toolbar to
		 emit the signal KButton.toggled() with parameter <code>id.</code> You must connect to
		 this signal, or use addConnection() to connect directly to the
		 button signal KButton.toggled().
		   		@short    Toggles a togglebutton.
	*/
	public native void toggleButton(int id);
	/**	
		 Sets a toggle button state.
			 If the button is a toggle button (see setToggle())
		 this will set its state flag. This will also emit the signal
		 KButton.toggled().
				@short    Sets a toggle button state.
		@see #setToggle
	*/
	public native void setButton(int id, boolean flag);
	/**	
		 Returns <code>true</code> if button is on and is a toggle button
				@return <code>true</code> if button is on and is a toggle button

		@short    Returns <code>true</code> if button is on and is a toggle button 
		@see #setToggle
	*/
	public native boolean isButtonOn(int id);
	/**	
		 Sets the text of a line editor.
			 Cursor is set at end of text.
		   		@short    Sets the text of a line editor.
	*/
	public native void setLinedText(int id, String text);
	/**	
		 Returns the line editor text.
				@return the line editor text.
   
		@short    Returns the line editor text.
	*/
	public native String getLinedText(int id);
	/**	
		 Inserts <code>text</code> in combobox <code>id</code> at position <code>index.</code>
		   		@short    Inserts <code>text</code> in combobox <code>id</code> at position <code>index.</code>
	*/
	public native void insertComboItem(int id, String text, int index);
	/**	
		 Inserts <code>list</code> in combobox <code>id</code> at position <code>index.</code>
		   		@short    Inserts <code>list</code> in combobox <code>id</code> at position <code>index.</code>
	*/
	public native void insertComboList(int id, String[] list, int index);
	/**	
		 Removes item <code>index</code> from combobox <code>id.</code>
		   		@short    Removes item <code>index</code> from combobox <code>id.</code>
	*/
	public native void removeComboItem(int id, int index);
	/**	
		 Sets item <code>index</code> to be current item in combobox <code>id.</code>
		   		@short    Sets item <code>index</code> to be current item in combobox <code>id.</code>
	*/
	public native void setCurrentComboItem(int id, int index);
	/**	
		 Changes item <code>index</code> in combobox <code>id</code> to text.
			 <code>index</code> = -1 refers current item (one displayed in the button).
		   		@short    Changes item <code>index</code> in combobox <code>id</code> to text.
	*/
	public native void changeComboItem(int id, String text, int index);
	public native void changeComboItem(int id, String text);
	/**	
		 Clears the combobox <code>id.</code>
			 Does not delete it or hide it.
		   		@short    Clears the combobox <code>id.</code>
	*/
	public native void clearCombo(int id);
	/**	
		 Returns text of item <code>index</code> from combobox <code>id.</code>
			 <code>index</code> = -1 refers to current item.
		   		@return text of item <code>index</code> from combobox <code>id.</code>

		@short    Returns text of item <code>index</code> from combobox <code>id.</code>
	*/
	public native String getComboItem(int id, int index);
	public native String getComboItem(int id);
	/**	
		 Returns a pointer to the combobox with <code>id.</code>
			 Example:
		 <pre>
		 KComboBox combo = toolbar.getCombo(combo_id);
		 </pre>
		 That way you can get access to other public methods
		 that KComboBox provides.
		   		@return a pointer to the combobox with <code>id.</code>

		@short    Returns a pointer to the combobox with <code>id.</code>
	*/
	public native KComboBox getCombo(int id);
	/**	
		 Returns a pointer to KToolBarLined with <code>id.</code>
			 Example:
		 <pre>
		 KLineEdit  lined = toolbar.getKToolBarLined(lined_id);
		 </pre>
		 That way you can get access to other public methods
		 that KLineEdit provides. KLineEdit is the same thing
		 as TQLineEdit plus completion signals.
		   		@return a pointer to KToolBarLined with <code>id.</code>

		@short    Returns a pointer to KToolBarLined with <code>id.</code>
	*/
	public native KLineEdit getLined(int id);
	/**	
		 Returns a pointer to KToolBarButton.
			 Example:
		 <pre>
		 KToolBarButton  button = toolbar.getButton(button_id);
		 </pre>
		 That way you can get access to other public methods
		 that KToolBarButton provides.
			  Using this method is not recommended.
		   		@short    Returns a pointer to KToolBarButton.
	*/
	public native KToolBarButton getButton(int id);
	/**	
		 Align item to the right.
			 This works only if toolbar is set to full width.
				@short    Align item to the right.
		@see #setFullWidth
	*/
	public native void alignItemRight(int id, boolean right);
	public native void alignItemRight(int id);
	/**	
		 Returns a pointer to the widget corresponding to <code>id.</code>
			 Wrong ids are not tested.
		 You can do with this whatever you want,
		 except change its height (hardcoded). If you change its width
		 you will probably have to call TQToolBar.updateRects(true)
				@return a pointer to the widget corresponding to <code>id.</code>

		@short    Returns a pointer to the widget corresponding to <code>id.</code>
		@see org.kde.qt.TQWidget
		@see #updateRects
	*/
	public native TQWidget getWidget(int id);
	/**	
		 Set item autosized.
			 This works only if the toolbar is set to full width.
		 Only <code>one</code> item can be autosized, and it has to be
		 the last left-aligned item. Items that come after this must be right
		 aligned. Items that can be right aligned are Lineds, Frames, Widgets and
		 Combos. An autosized item will resize itself whenever the toolbar geometry
		 changes to the last right-aligned item (or to end of toolbar if there
		 are no right-aligned items.)
				@short    Set item autosized.
		@see #setFullWidth
		@see #alignItemRight
	*/
	public native void setItemAutoSized(int id, boolean yes);
	public native void setItemAutoSized(int id);
	/**	
		 Remove all items.
			 The toolbar is redrawn after it.
		   		@short    Remove all items.
	*/
	public native void clear();
	/**	
		 Remove item <code>id.</code>
			 Item is deleted. Toolbar is redrawn after it.
		   		@short    Remove item <code>id.</code>
	*/
	public native void removeItem(int id);
	/**	
		 Remove item <code>id.</code>
			 Item is deleted when toolbar is redrawn.
		   		@short    Remove item <code>id.</code>
	*/
	public native void removeItemDelayed(int id);
	/**	
		 Hide item <code>id.</code>
		   		@short    Hide item <code>id.</code>
	*/
	public native void hideItem(int id);
	/**	
		 Show item <code>id.</code>
		   		@short    Show item <code>id.</code>
	*/
	public native void showItem(int id);
	/**	
		 Returns the index of the item <code>id.</code>
				@return the index of the item <code>id.</code>

		@short    Returns the index of the item <code>id.</code>
	*/
	public native int itemIndex(int id);
	/**	
		 Returns the id of the item at the given index.
				@short    Returns the id of the item at the given index.
	*/
	public native int idAt(int index);
	/**	
		 Set toolbar to full parent size (default).
			 In full size mode the bar extends over the parent's full width or height.
		 If the mode is disabled the toolbar tries to take as much space as it
		 needs without wrapping, but it does not exceed the parent box. You can
		 force a certain width or height with setMaxWidth() or
		 setMaxHeight().
			 If you want to use right-aligned items or auto-sized items you must use
		 full size mode.
		   		@short    Set toolbar to full parent size (default).
	*/
	public native void setFullSize(boolean flag);
	public native void setFullSize();
	/**	
		 Returns the full-size mode enabled flag.
				@return <code>true</code> if the full-size mode is enabled.
   
		@short    Returns the full-size mode enabled flag.
	*/
	public native boolean fullSize();
	/**	
		 Set position of toolbar.
				@short    Set position of toolbar.
		@see BarPosition
	*/
	public native void setBarPos(int bpos);
	/**	
		 Returns the toolbar position.
				@return position of toolbar.
   
		@short    Returns the toolbar position.
	*/
	public native int barPos();
	/**	
		 Set title for toolbar when it floats.
			 Titles are however not (yet)
		 visible. You can't change toolbar's title while it's floating.
		   		@short    Set title for toolbar when it floats.
	*/
	public native void setTitle(String _title);
	/**	
		 Set the kind of painting for buttons.
			 Choose from:
		
			<li>
			IconOnly (only icons),
			</li>
			
			<li>
			IconTextRight (icon and text, text is left from icons),
			</li>
			
			<li>
			TextOnly (only text),
			</li>
			
			<li>
			IconTextBottom (icons and text, text is under icons).
			</li>
				   		@short    Set the kind of painting for buttons.
		@see IconText
	*/
	public native void setIconText(int it);
	/**	
		 Similar to setIconText(IconText it) but allows you to
		 disable or enable updating.  If <code>update</code> is false, then the
		 buttons will not be updated.  This is useful only if you know
		 that you will be forcing an update later.
		   		@short    Similar to setIconText(IconText it) but allows you to  disable or enable updating.
	*/
	public native void setIconText(int it, boolean update);
	/**	
		 Returns the current text style for buttons.
				@return the current text style for buttons.
   
		@short    Returns the current text style for buttons.
	*/
	public native int iconTextId();
	/**	
		 Set the icon size to load. Usually you should not call
		 this, the icon size is taken care of by KIconLoader
		 and globally configured.
		 By default, the toolbar will load icons of size 32 for main
		 toolbars and 22 for other toolbars
			@param size The size to use
		   		@short    Set the icon size to load.
		@see KIconLoader#
	*/
	public native void setIconSize(int size);
	/**	
		 Same as setIconText(int size) but allows you
		 to disable the toolbar update.
			@param size The size to use
			@param update If true, then the toolbar will be updated after
		               this
		   		@short    Same as setIconText(int size) but allows you  to disable the toolbar update.
	*/
	public native void setIconSize(int size, boolean update);
	/**	
		 Returns the current icon size for buttons.
				@return the current icon size for buttons.
   
		@short    Returns the current icon size for buttons.
	*/
	public native int iconSize();
	/**	
		 Returns the default size for this type of toolbar.
				@return the default size for this type of toolbar.
   
		@short    Returns the default size for this type of toolbar.
	*/
	public native int iconSizeDefault();
	/**	
		 This allows you to enable or disable the context menu.
			@param enable If false, then the context menu will be disabled
		   		@short    This allows you to enable or disable the context menu.
	*/
	public native void setEnableContextMenu(boolean enable);
	public native void setEnableContextMenu();
	/**	
		 Returns the context menu enabled flag
				@return true if the context menu is disabled
   
		@short    Returns the context menu enabled flag
	*/
	public native boolean contextMenuEnabled();
	/**	
		 This will inform a toolbar button to ignore certain style
		 changes.  Specifically, it will ignore IconText (always IconOnly)
		 and will not allow image effects to apply.
			@param id The button to exclude from styles
			@param no_style If true, then it is excluded (default: true).
		   		@short    This will inform a toolbar button to ignore certain style  changes.
	*/
	public native void setItemNoStyle(int id, boolean no_style);
	public native void setItemNoStyle(int id);
	public native void setFlat(boolean flag);
	/**	
		 Returns the total number of items in the toolbar
				@return the total number of items in the toolbar
   
		@short    Returns the total number of items in the toolbar
	*/
	public native int count();
	/**	
		 Instruct the toolbar to save it's current state to either the app
		 config file or to the XML-GUI resource file (whichever has
		 precedence).
		   		@short    Instruct the toolbar to save it's current state to either the app  config file or to the XML-GUI resource file (whichever has  precedence).
	*/
	public native void saveState();
	/**	
		 Save the toolbar settings to group <code>configGroup</code> in <code>config.</code>
		   		@short    Save the toolbar settings to group <code>configGroup</code> in <code>config.</code>
	*/
	public native void saveSettings(KConfig config, String configGroup);
	/**	
		 Read the toolbar settings from group <code>configGroup</code> in <code>config</code>
		 and apply them. Even default settings are re-applied if <code>force</code> is set.
		   		@short    Read the toolbar settings from group <code>configGroup</code> in <code>config</code>  and apply them.
	*/
	public native void applySettings(KConfig config, String configGroup, boolean force);
	public native void applySettings(KConfig config, String configGroup);
	public native void setXMLGUIClient(KXMLGUIClientInterface client);
	/**	
		 Assign a (translated) text to this toolbar. This is used
		 for the tooltip on the handle, and when listing the toolbars.
		   		@short    Assign a (translated) text to this toolbar.
	*/
	public native void setText(String txt);
	/**	
		 Returns the toolbar's text.
				@return the toolbar's text.
   
		@short    Returns the toolbar's text.
	*/
	public native String text();
	public native void setStretchableWidget(TQWidget w);
	public native TQSizePolicy sizePolicy();
	public native boolean highlight();
	public native TQSize sizeHint();
	public native TQSize minimumSizeHint();
	public native TQSize minimumSize();
	public native void hide();
	public native void show();
	public native void updateRects(boolean arg1);
	public native void updateRects();
	/**	
		 Load state from an XML element, called by KXMLGUIBuilder
		     		@short    Load state from an XML element, called by KXMLGUIBuilder
	*/
	public native void loadState(TQDomElement e);
	public native void saveState(TQDomElement e);
	/**	
			     		@short
	*/
	public native void positionYourself(boolean force);
	public native void positionYourself();
	public native void setIconText(String txt);
	/**	
		 Returns the global setting for "Highlight buttons under mouse"
				@return global setting for "Highlight buttons under mouse"
     
		@short    Returns the global setting for "Highlight buttons under mouse"
	*/
	public static native boolean highlightSetting();
	/**	
		 Returns the global setting for "Toolbars transparent when moving"
				@return global setting for "Toolbars transparent when moving"
     
		@short    Returns the global setting for "Toolbars transparent when moving"
	*/
	public static native boolean transparentSetting();
	/**	
		 Returns the global setting for "Icon Text"
				@return global setting for "Icon Text"
     
		@short    Returns the global setting for "Icon Text"
	*/
	public static native int iconTextSetting();
	protected native void mousePressEvent(TQMouseEvent arg1);
	protected native void childEvent(TQChildEvent e);
	public native void showEvent(TQShowEvent e);
	protected native void resizeEvent(TQResizeEvent e);
	public native boolean event(TQEvent e);
	protected native void applyAppearanceSettings(KConfig config, String _configGroup, boolean forceGlobal);
	protected native void applyAppearanceSettings(KConfig config, String _configGroup);
	protected native String settingsGroup();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}