1
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
2
<class>EditFunctionsBase</class>
3
<comment>*********************************************************************
4
** Copyright (C) 2000 Trolltech AS. All rights reserved.
6
** This file is part of Qt Designer.
8
** This file may be distributed and/or modified under the terms of the
9
** GNU General Public License version 2 as published by the Free Software
10
** Foundation and appearing in the file LICENSE.GPL included in the
11
** packaging of this file.
13
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
14
** licenses may use this file in accordance with the Qt Commercial License
15
** Agreement provided with the Software.
17
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20
** See http://www.trolltech.com/gpl/ for GPL licensing information.
21
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
22
** information about Qt Commercial License Agreements.
24
** Contact info@trolltech.com if any conditions of this licensing are
27
*********************************************************************</comment>
28
<widget class="QDialog">
29
<property name="name">
30
<cstring>EditFunctionsBase</cstring>
32
<property name="geometry">
40
<property name="caption">
41
<string>Edit Functions</string>
43
<property name="sizeGripEnabled">
46
<property name="whatsThis" stdset="0">
47
<string><b>Edit Functions</b><p>Add, edit or delete the current form's slots or functions.</p><p>Click the <b>Add Function</b>-button to create a new function; enter a name, choose an access mode and specify if it should be a slot or normal function.</p><p>Select an entry from the list and click the <b>Delete Function</b>-button to remove a function; in case of a slot all connections using this slot will also be removed.</p></string>
50
<property name="name">
51
<cstring>unnamed</cstring>
53
<property name="margin">
56
<property name="spacing">
59
<widget class="QListView">
61
<property name="text">
62
<string>Function</string>
64
<property name="clickable">
67
<property name="resizable">
72
<property name="text">
73
<string>Return Type</string>
75
<property name="clickable">
78
<property name="resizable">
83
<property name="text">
84
<string>Specifier</string>
86
<property name="clickable">
89
<property name="resizable">
94
<property name="text">
95
<string>Access</string>
97
<property name="clickable">
100
<property name="resizable">
105
<property name="text">
106
<string>Type</string>
108
<property name="clickable">
111
<property name="resizable">
116
<property name="text">
117
<string>In Use</string>
119
<property name="clickable">
122
<property name="resizable">
126
<property name="name">
127
<cstring>functionListView</cstring>
129
<property name="sizePolicy">
131
<hsizetype>7</hsizetype>
132
<vsizetype>7</vsizetype>
133
<horstretch>0</horstretch>
134
<verstretch>0</verstretch>
137
<property name="frameShape">
138
<enum>StyledPanel</enum>
140
<property name="frameShadow">
143
<property name="allColumnsShowFocus">
146
<property name="showSortIndicator">
149
<property name="whatsThis" stdset="0">
150
<string><b>This form's functions.</b><p>Select the function you want to change or delete.</p></string>
153
<widget class="QLayoutWidget">
154
<property name="name">
155
<cstring>Layout11</cstring>
158
<property name="name">
159
<cstring>unnamed</cstring>
161
<property name="margin">
164
<widget class="QCheckBox">
165
<property name="name">
166
<cstring>showOnlySlots</cstring>
168
<property name="focusPolicy">
169
<enum>StrongFocus</enum>
171
<property name="text">
172
<string>Only d&isplay slots</string>
174
<property name="toolTip" stdset="0">
175
<string>Change displaying mode for functions</string>
177
<property name="whatsThis" stdset="0">
178
<string><b>Check this button if only the slots should be displayed</b><p>Otherwise all functions, i.e. normal C++ functions and slots are displayed.</p>
183
<property name="name">
184
<cstring>Vertical Spacing1</cstring>
186
<property name="orientation">
187
<enum>Horizontal</enum>
189
<property name="sizeType">
190
<enum>Expanding</enum>
192
<property name="sizeHint">
199
<widget class="QPushButton">
200
<property name="name">
201
<cstring>addFunction</cstring>
203
<property name="text">
204
<string>&New Function</string>
206
<property name="toolTip" stdset="0">
207
<string>Add new function</string>
209
<property name="whatsThis" stdset="0">
210
<string><b>Add a new function.</b><p>New functions have a default name and public access.</p></string>
213
<widget class="QPushButton">
214
<property name="name">
215
<cstring>deleteFunction</cstring>
217
<property name="text">
218
<string>&Delete Function</string>
220
<property name="toolTip" stdset="0">
221
<string>Delete function</string>
223
<property name="whatsThis" stdset="0">
224
<string><b>Delete the selected function.</b><p>All connections using this function are also removed.</p></string>
229
<widget class="QGroupBox">
230
<property name="name">
231
<cstring>boxProperties</cstring>
233
<property name="sizePolicy">
235
<hsizetype>5</hsizetype>
236
<vsizetype>5</vsizetype>
237
<horstretch>0</horstretch>
238
<verstretch>0</verstretch>
241
<property name="title">
242
<string>Function Properties</string>
245
<property name="name">
246
<cstring>unnamed</cstring>
248
<property name="margin">
251
<property name="spacing">
254
<widget class="QLayoutWidget">
255
<property name="name">
256
<cstring>Layout14</cstring>
259
<property name="name">
260
<cstring>unnamed</cstring>
262
<property name="margin">
265
<widget class="QLayoutWidget">
266
<property name="name">
267
<cstring>Layout5</cstring>
270
<property name="name">
271
<cstring>unnamed</cstring>
273
<property name="margin">
276
<property name="spacing">
279
<widget class="QLabel">
280
<property name="name">
281
<cstring>Label8</cstring>
283
<property name="text">
284
<string>&Function:</string>
286
<property name="alignment">
287
<set>AlignVCenter|AlignRight</set>
289
<property name="buddy" stdset="0">
290
<cstring>functionName</cstring>
293
<widget class="KLineEdit">
294
<property name="name">
295
<cstring>functionName</cstring>
297
<property name="sizePolicy">
299
<hsizetype>7</hsizetype>
300
<vsizetype>0</vsizetype>
301
<horstretch>0</horstretch>
302
<verstretch>0</verstretch>
305
<property name="toolTip" stdset="0">
306
<string>Change function name</string>
308
<property name="whatsThis" stdset="0">
309
<string><b>Change the name of the selected function.</b><p>The name should include the argument list and must be syntactically correct.</p></string>
312
<widget class="QLabel">
313
<property name="name">
314
<cstring>labelType</cstring>
316
<property name="text">
317
<string>&Return type:</string>
319
<property name="alignment">
320
<set>AlignVCenter|AlignRight</set>
322
<property name="buddy" stdset="0">
323
<cstring>editType</cstring>
326
<widget class="KLineEdit">
327
<property name="name">
328
<cstring>editType</cstring>
330
<property name="sizePolicy">
332
<hsizetype>5</hsizetype>
333
<vsizetype>0</vsizetype>
334
<horstretch>0</horstretch>
335
<verstretch>0</verstretch>
338
<property name="toolTip" stdset="0">
339
<string>Change the return type of the function</string>
341
<property name="whatsThis" stdset="0">
342
<string><b>Change the return type of the selected function.</b><p>Specifiy here the datatype which should be returned by the function.</p></string>
348
<property name="name">
349
<cstring>Spacer6_2</cstring>
351
<property name="orientation">
352
<enum>Vertical</enum>
354
<property name="sizeType">
357
<property name="sizeHint">
364
<widget class="QLayoutWidget">
365
<property name="name">
366
<cstring>Layout13</cstring>
369
<property name="name">
370
<cstring>unnamed</cstring>
372
<property name="margin">
375
<widget class="QLabel">
376
<property name="name">
377
<cstring>Label9_2</cstring>
379
<property name="text">
380
<string>S&pecifier:</string>
382
<property name="alignment">
383
<set>AlignVCenter|AlignRight</set>
385
<property name="buddy" stdset="0">
386
<cstring>functionSpecifier</cstring>
389
<widget class="QComboBox">
391
<property name="text">
392
<string>non virtual</string>
396
<property name="text">
397
<string>virtual</string>
401
<property name="text">
402
<string>pure virtual</string>
406
<property name="text">
407
<string>static</string>
410
<property name="name">
411
<cstring>functionSpecifier</cstring>
413
<property name="sizePolicy">
415
<hsizetype>1</hsizetype>
416
<vsizetype>0</vsizetype>
417
<horstretch>0</horstretch>
418
<verstretch>0</verstretch>
421
<property name="toolTip" stdset="0">
422
<string>Change function access</string>
424
<property name="whatsThis" stdset="0">
425
<string><b>Change the access policy of the function</b><p>All functions are created virtual and should be reimplemented in subclasses.</p></string>
428
<widget class="QLabel">
429
<property name="name">
430
<cstring>TextLabel1</cstring>
432
<property name="text">
433
<string>&Access:</string>
435
<property name="alignment">
436
<set>WordBreak|AlignVCenter|AlignRight</set>
438
<property name="buddy" stdset="0">
439
<cstring>functionAccess</cstring>
442
<widget class="QComboBox">
444
<property name="text">
445
<string>public</string>
449
<property name="text">
450
<string>protected</string>
454
<property name="text">
455
<string>private</string>
458
<property name="name">
459
<cstring>functionAccess</cstring>
461
<property name="sizePolicy">
463
<hsizetype>1</hsizetype>
464
<vsizetype>0</vsizetype>
465
<horstretch>0</horstretch>
466
<verstretch>0</verstretch>
469
<property name="toolTip" stdset="0">
470
<string>Change function access</string>
472
<property name="whatsThis" stdset="0">
473
<string><b>Change the access policy of the function</b><p>All functions are created virtual and should be reimplemented in subclasses.</p></string>
476
<widget class="QLabel">
477
<property name="name">
478
<cstring>TextLabel1_2</cstring>
480
<property name="text">
481
<string>&Type:</string>
483
<property name="alignment">
484
<set>AlignVCenter|AlignRight</set>
486
<property name="buddy" stdset="0">
487
<cstring>functionType</cstring>
490
<widget class="QComboBox">
492
<property name="text">
493
<string>slot</string>
497
<property name="text">
498
<string>function</string>
501
<property name="name">
502
<cstring>functionType</cstring>
504
<property name="toolTip" stdset="0">
505
<string>Change function type</string>
507
<property name="whatsThis" stdset="0">
508
<string><b>Change the type of the function.</b><p>The type specifies if the function is either a slot or a normal C++ function.</p></string>
512
<property name="name">
513
<cstring>Spacer5</cstring>
515
<property name="orientation">
516
<enum>Horizontal</enum>
518
<property name="sizeType">
519
<enum>Expanding</enum>
521
<property name="sizeHint">
534
<widget class="QLayoutWidget">
535
<property name="name">
536
<cstring>Layout1</cstring>
539
<property name="name">
540
<cstring>unnamed</cstring>
542
<property name="margin">
545
<property name="spacing">
548
<widget class="QPushButton">
549
<property name="name">
550
<cstring>helpButton</cstring>
552
<property name="text">
553
<string>&Help</string>
555
<property name="autoDefault">
560
<property name="name">
561
<cstring>Horizontal Spacing2</cstring>
563
<property name="orientation">
564
<enum>Horizontal</enum>
566
<property name="sizeType">
567
<enum>Expanding</enum>
569
<property name="sizeHint">
576
<widget class="QPushButton">
577
<property name="name">
578
<cstring>okButton</cstring>
580
<property name="text">
581
<string>&OK</string>
583
<property name="autoDefault">
586
<property name="default">
589
<property name="whatsThis" stdset="0">
590
<string>Close the dialog and apply all the changes.</string>
593
<widget class="QPushButton">
594
<property name="name">
595
<cstring>cancelButton</cstring>
597
<property name="text">
598
<string>&Cancel</string>
600
<property name="autoDefault">
603
<property name="whatsThis" stdset="0">
604
<string>Close the dialog and discard any changes.</string>
613
<sender>cancelButton</sender>
614
<signal>clicked()</signal>
615
<receiver>EditFunctionsBase</receiver>
616
<slot>reject()</slot>
619
<sender>okButton</sender>
620
<signal>clicked()</signal>
621
<receiver>EditFunctionsBase</receiver>
622
<slot>okClicked()</slot>
625
<sender>deleteFunction</sender>
626
<signal>clicked()</signal>
627
<receiver>EditFunctionsBase</receiver>
628
<slot>functionRemove()</slot>
631
<sender>addFunction</sender>
632
<signal>clicked()</signal>
633
<receiver>EditFunctionsBase</receiver>
634
<slot>functionAdd()</slot>
637
<sender>functionName</sender>
638
<signal>textChanged(const QString&)</signal>
639
<receiver>EditFunctionsBase</receiver>
640
<slot>currentTextChanged(const QString&)</slot>
643
<sender>functionListView</sender>
644
<signal>selectionChanged(QListViewItem*)</signal>
645
<receiver>EditFunctionsBase</receiver>
646
<slot>currentItemChanged(QListViewItem*)</slot>
649
<sender>functionListView</sender>
650
<signal>currentChanged(QListViewItem*)</signal>
651
<receiver>EditFunctionsBase</receiver>
652
<slot>currentItemChanged(QListViewItem*)</slot>
655
<sender>editType</sender>
656
<signal>textChanged(const QString&)</signal>
657
<receiver>EditFunctionsBase</receiver>
658
<slot>currentReturnTypeChanged(const QString&)</slot>
661
<sender>functionSpecifier</sender>
662
<signal>activated(const QString&)</signal>
663
<receiver>EditFunctionsBase</receiver>
664
<slot>currentSpecifierChanged(const QString&)</slot>
667
<sender>functionAccess</sender>
668
<signal>activated(const QString&)</signal>
669
<receiver>EditFunctionsBase</receiver>
670
<slot>currentAccessChanged(const QString&)</slot>
673
<sender>functionType</sender>
674
<signal>activated(const QString&)</signal>
675
<receiver>EditFunctionsBase</receiver>
676
<slot>currentTypeChanged(const QString&)</slot>
679
<sender>showOnlySlots</sender>
680
<signal>toggled(bool)</signal>
681
<receiver>EditFunctionsBase</receiver>
682
<slot>displaySlots(bool)</slot>
686
<tabstop>functionName</tabstop>
687
<tabstop>editType</tabstop>
688
<tabstop>functionSpecifier</tabstop>
689
<tabstop>functionAccess</tabstop>
690
<tabstop>functionType</tabstop>
691
<tabstop>helpButton</tabstop>
692
<tabstop>okButton</tabstop>
693
<tabstop>cancelButton</tabstop>
694
<tabstop>functionListView</tabstop>
695
<tabstop>showOnlySlots</tabstop>
696
<tabstop>addFunction</tabstop>
697
<tabstop>deleteFunction</tabstop>
700
<slot access="protected">currentItemChanged( QListViewItem * )</slot>
701
<slot access="protected">currentSpecifierChanged( const QString & )</slot>
702
<slot access="protected">currentTextChanged( const QString & )</slot>
703
<slot access="protected">currentReturnTypeChanged( const QString & )</slot>
704
<slot access="protected">destroy()</slot>
705
<slot access="protected">init()</slot>
706
<slot access="protected">currentAccessChanged( const QString & )</slot>
707
<slot access="protected">currentTypeChanged( const QString & )</slot>
708
<slot access="protected">okClicked()</slot>
709
<slot access="protected">functionAdd()</slot>
710
<slot access="protected">functionRemove()</slot>
711
<slot access="protected">displaySlots( bool )</slot>
713
<layoutdefaults spacing="6" margin="11"/>