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
|
//
// Copyright 2006 Jim Bublitz <[email protected]>
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
// may also apply
// Generated by preSip
// module tdeui version KDE 3.5.3
// This software 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 software 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 library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TDEToolBarSeparator : TQFrame
{
%TypeHeaderCode
#include <tdetoolbar.h>
%End
public:
TDEToolBarSeparator (Orientation, bool, TQToolBar* /TransferThis/, const char* = 0);
TQSize sizeHint () const;
Orientation orientation () const;
TQSizePolicy sizePolicy () const;
bool showLine () const;
public slots:
void setOrientation (Orientation);
protected:
void styleChange (TQStyle&);
%If ( KDE_3_2_0 - )
void drawContents (TQPainter*);
%End
}; // class TDEToolBarSeparator
class TDEToolBar : TQToolBar
{
%TypeHeaderCode
#include <tdetoolbar.h>
%End
public:
enum IconText
{
IconOnly,
IconTextRight,
TextOnly,
IconTextBottom
};
enum BarStatus
{
Toggle,
Show,
Hide
};
enum BarPosition
{
Unmanaged,
Floating,
Top,
Bottom,
Right,
Left,
Flat
};
TDEToolBar (TQWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1);
//ig TDEToolBar (TQMainWindow*, TQMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1);
TDEToolBar (TQMainWindow*, TQWidget*, bool = 0, const char* = 0, bool = 0, bool = 1);
int insertButton (const TQString&, int, bool = 1, const TQString& = TQString ::null , int = -1, TDEInstance* = TDEGlobal ::instance ());
int insertButton (const TQString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = -1, TDEInstance* = TDEGlobal ::instance ());
int insertButton (const TQPixmap&, int, bool = 1, const TQString& = TQString ::null , int = -1);
int insertButton (const TQPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = -1);
int insertButton (const TQString&, int, TQPopupMenu*, bool, const TQString&, int = -1);
int insertButton (const TQPixmap&, int, TQPopupMenu*, bool, const TQString&, int = -1);
int insertLined (const TQString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = 70, int = -1);
int insertCombo (const TQStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
%If ( KDE_3_2_0 - )
int insertCombo (const TQString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
%End
int insertSeparator (int, int);
int insertLineSeparator (int, int);
int insertWidget (int, int, TQWidget*, int = -1);
int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const TQString&, int = -1);
KAnimWidget* animatedWidget (int);
void addConnection (int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int));
void setItemEnabled (int, bool);
void setButtonIcon (int, const TQString&);
void setButtonPixmap (int, const TQPixmap&);
void setButtonIconSet (int, const TQIconSet&);
void setDelayedPopup (int, TQPopupMenu*, bool = 0);
void setAutoRepeat (int, bool = 1);
void setToggle (int, bool = 1);
void toggleButton (int);
void setButton (int, bool);
bool isButtonOn (int);
void setLinedText (int, const TQString&);
TQString getLinedText (int);
void insertComboItem (int, const TQString&, int);
void insertComboList (int, const TQStringList&, int);
void removeComboItem (int, int);
void setCurrentComboItem (int, int);
void changeComboItem (int, const TQString&, int = -1);
void clearCombo (int);
TQString getComboItem (int, int = -1);
KComboBox* getCombo (int);
KLineEdit* getLined (int);
TDEToolBarButton* getButton (int);
void alignItemRight (int, bool = 1);
TQWidget* getWidget (int);
void setItemAutoSized (int, bool = 1);
void clear ();
void removeItem (int);
%If ( KDE_3_2_0 - )
void removeItemDelayed (int);
%End
void hideItem (int);
void showItem (int);
%If ( KDE_3_2_0 - )
int itemIndex (int);
int idAt (int);
%End
void setFullSize (bool = 1);
bool fullSize () const;
void enableMoving (bool = 1);
void setBarPos (TDEToolBar::BarPosition);
BarPosition barPos () const;
bool enable (TDEToolBar::BarStatus);
void setMaxHeight (int);
int maxHeight ();
void setMaxWidth (int);
int maxWidth ();
void setTitle (const TQString&);
void enableFloating (bool);
void setIconText (TDEToolBar::IconText);
void setIconText (TDEToolBar::IconText, bool);
IconText iconText () const;
void setIconSize (int);
void setIconSize (int, bool);
int iconSize () const;
%If ( KDE_3_4_0 - )
int iconSizeDefault () const;
%End
void setEnableContextMenu (bool = 1);
bool contextMenuEnabled () const;
void setItemNoStyle (int, bool = 1);
void setFlat (bool);
int count ();
void saveState ();
void saveSettings (TDEConfig*, const TQString&);
%If ( KDE_3_3_0 - )
void applySettings (TDEConfig*, const TQString&, bool);
%End
void applySettings (TDEConfig*, const TQString&);
void setXMLGUIClient (KXMLGUIClient*);
void setText (const TQString&);
TQString text () const;
void setStretchableWidget (TQWidget*);
TQSizePolicy sizePolicy () const;
bool highlight () const;
TQSize sizeHint () const;
TQSize minimumSizeHint () const;
TQSize minimumSize () const;
void hide ();
void show ();
void updateRects (bool = 0);
void loadState (const TQDomElement&);
void saveState (TQDomElement&);
void positionYourself (bool);
signals:
void clicked (int);
void doubleClicked (int);
void pressed (int);
void released (int);
void toggled (int);
void highlighted (int, bool);
void highlighted (int);
void moved (TDEToolBar::BarPosition);
void modechange ();
%If ( KDE_3_1_0 - )
void toolbarDestroyed ();
%End
public:
%If ( KDE_3_1_0 - )
static bool highlightSetting ();
static bool transparentSetting ();
static TDEToolBar::IconText iconTextSetting ();
%End
public slots:
virtual void setIconText (const TQString&);
protected:
void mousePressEvent (TQMouseEvent*);
void childEvent (TQChildEvent*);
void showEvent (TQShowEvent*);
void resizeEvent (TQResizeEvent*);
bool event (TQEvent*);
void applyAppearanceSettings (TDEConfig*, const TQString&, bool = 0);
TQString settingsGroup () const;
protected:
//igx virtual void virtual_hook (int, void*);
public:
%If ( - KDE_3_2_0 )
int insertCombo (const TQString&, int, bool, const char*, TQObject*, const char*, bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
%End
signals:
%If ( - KDE_3_1_0 )
//ig static bool highlightSetting ();
//ig static bool transparentSetting ();
//ig static IconText iconTextSetting ();
%End
}; // class TDEToolBar
|