diff options
Diffstat (limited to 'kdevdesigner/designer/editfunctions.ui')
-rw-r--r-- | kdevdesigner/designer/editfunctions.ui | 714 |
1 files changed, 714 insertions, 0 deletions
diff --git a/kdevdesigner/designer/editfunctions.ui b/kdevdesigner/designer/editfunctions.ui new file mode 100644 index 00000000..2cecdcb1 --- /dev/null +++ b/kdevdesigner/designer/editfunctions.ui @@ -0,0 +1,714 @@ +<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> +<class>EditFunctionsBase</class> +<comment>********************************************************************* +** Copyright (C) 2000 Trolltech AS. All rights reserved. +** +** This file is part of Qt Designer. +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition +** licenses may use this file in accordance with the Qt Commercial License +** Agreement provided with the Software. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.trolltech.com/gpl/ for GPL licensing information. +** See http://www.trolltech.com/pricing.html or email [email protected] for +** information about Qt Commercial License Agreements. +** +** Contact [email protected] if any conditions of this licensing are +** not clear to you. +** +*********************************************************************</comment> +<widget class="QDialog"> + <property name="name"> + <cstring>EditFunctionsBase</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>600</width> + <height>371</height> + </rect> + </property> + <property name="caption"> + <string>Edit Functions</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <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> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <widget class="QListView"> + <column> + <property name="text"> + <string>Function</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Return Type</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Specifier</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Access</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Type</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>In Use</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <property name="name"> + <cstring>functionListView</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="frameShape"> + <enum>StyledPanel</enum> + </property> + <property name="frameShadow"> + <enum>Sunken</enum> + </property> + <property name="allColumnsShowFocus"> + <bool>true</bool> + </property> + <property name="showSortIndicator"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string><b>This form's functions.</b><p>Select the function you want to change or delete.</p></string> + </property> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>Layout11</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>6</number> + </property> + <widget class="QCheckBox"> + <property name="name"> + <cstring>showOnlySlots</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="text"> + <string>Only d&isplay slots</string> + </property> + <property name="toolTip" stdset="0"> + <string>Change displaying mode for functions</string> + </property> + <property name="whatsThis" stdset="0"> + <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> +</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>Vertical Spacing1</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QPushButton"> + <property name="name"> + <cstring>addFunction</cstring> + </property> + <property name="text"> + <string>&New Function</string> + </property> + <property name="toolTip" stdset="0"> + <string>Add new function</string> + </property> + <property name="whatsThis" stdset="0"> + <string><b>Add a new function.</b><p>New functions have a default name and public access.</p></string> + </property> + </widget> + <widget class="QPushButton"> + <property name="name"> + <cstring>deleteFunction</cstring> + </property> + <property name="text"> + <string>&Delete Function</string> + </property> + <property name="toolTip" stdset="0"> + <string>Delete function</string> + </property> + <property name="whatsThis" stdset="0"> + <string><b>Delete the selected function.</b><p>All connections using this function are also removed.</p></string> + </property> + </widget> + </hbox> + </widget> + <widget class="QGroupBox"> + <property name="name"> + <cstring>boxProperties</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Function Properties</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>Layout14</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>Layout5</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>Label8</cstring> + </property> + <property name="text"> + <string>&Function:</string> + </property> + <property name="alignment"> + <set>AlignVCenter|AlignRight</set> + </property> + <property name="buddy" stdset="0"> + <cstring>functionName</cstring> + </property> + </widget> + <widget class="KLineEdit"> + <property name="name"> + <cstring>functionName</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip" stdset="0"> + <string>Change function name</string> + </property> + <property name="whatsThis" stdset="0"> + <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> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>labelType</cstring> + </property> + <property name="text"> + <string>&Return type:</string> + </property> + <property name="alignment"> + <set>AlignVCenter|AlignRight</set> + </property> + <property name="buddy" stdset="0"> + <cstring>editType</cstring> + </property> + </widget> + <widget class="KLineEdit"> + <property name="name"> + <cstring>editType</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip" stdset="0"> + <string>Change the return type of the function</string> + </property> + <property name="whatsThis" stdset="0"> + <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> + </property> + </widget> + </hbox> + </widget> + <spacer> + <property name="name"> + <cstring>Spacer6_2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Fixed</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>16</height> + </size> + </property> + </spacer> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>Layout13</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>Label9_2</cstring> + </property> + <property name="text"> + <string>S&pecifier:</string> + </property> + <property name="alignment"> + <set>AlignVCenter|AlignRight</set> + </property> + <property name="buddy" stdset="0"> + <cstring>functionSpecifier</cstring> + </property> + </widget> + <widget class="QComboBox"> + <item> + <property name="text"> + <string>non virtual</string> + </property> + </item> + <item> + <property name="text"> + <string>virtual</string> + </property> + </item> + <item> + <property name="text"> + <string>pure virtual</string> + </property> + </item> + <item> + <property name="text"> + <string>static</string> + </property> + </item> + <property name="name"> + <cstring>functionSpecifier</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip" stdset="0"> + <string>Change function access</string> + </property> + <property name="whatsThis" stdset="0"> + <string><b>Change the access policy of the function</b><p>All functions are created virtual and should be reimplemented in subclasses.</p></string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>TextLabel1</cstring> + </property> + <property name="text"> + <string>&Access:</string> + </property> + <property name="alignment"> + <set>WordBreak|AlignVCenter|AlignRight</set> + </property> + <property name="buddy" stdset="0"> + <cstring>functionAccess</cstring> + </property> + </widget> + <widget class="QComboBox"> + <item> + <property name="text"> + <string>public</string> + </property> + </item> + <item> + <property name="text"> + <string>protected</string> + </property> + </item> + <item> + <property name="text"> + <string>private</string> + </property> + </item> + <property name="name"> + <cstring>functionAccess</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip" stdset="0"> + <string>Change function access</string> + </property> + <property name="whatsThis" stdset="0"> + <string><b>Change the access policy of the function</b><p>All functions are created virtual and should be reimplemented in subclasses.</p></string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>TextLabel1_2</cstring> + </property> + <property name="text"> + <string>&Type:</string> + </property> + <property name="alignment"> + <set>AlignVCenter|AlignRight</set> + </property> + <property name="buddy" stdset="0"> + <cstring>functionType</cstring> + </property> + </widget> + <widget class="QComboBox"> + <item> + <property name="text"> + <string>slot</string> + </property> + </item> + <item> + <property name="text"> + <string>function</string> + </property> + </item> + <property name="name"> + <cstring>functionType</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>Change function type</string> + </property> + <property name="whatsThis" stdset="0"> + <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> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>Spacer5</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + </vbox> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>Layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <widget class="QPushButton"> + <property name="name"> + <cstring>helpButton</cstring> + </property> + <property name="text"> + <string>&Help</string> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>Horizontal Spacing2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QPushButton"> + <property name="name"> + <cstring>okButton</cstring> + </property> + <property name="text"> + <string>&OK</string> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + <property name="default"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string>Close the dialog and apply all the changes.</string> + </property> + </widget> + <widget class="QPushButton"> + <property name="name"> + <cstring>cancelButton</cstring> + </property> + <property name="text"> + <string>&Cancel</string> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string>Close the dialog and discard any changes.</string> + </property> + </widget> + </hbox> + </widget> + </vbox> +</widget> +<connections> + <connection> + <sender>cancelButton</sender> + <signal>clicked()</signal> + <receiver>EditFunctionsBase</receiver> + <slot>reject()</slot> + </connection> + <connection> + <sender>okButton</sender> + <signal>clicked()</signal> + <receiver>EditFunctionsBase</receiver> + <slot>okClicked()</slot> + </connection> + <connection> + <sender>deleteFunction</sender> + <signal>clicked()</signal> + <receiver>EditFunctionsBase</receiver> + <slot>functionRemove()</slot> + </connection> + <connection> + <sender>addFunction</sender> + <signal>clicked()</signal> + <receiver>EditFunctionsBase</receiver> + <slot>functionAdd()</slot> + </connection> + <connection> + <sender>functionName</sender> + <signal>textChanged(const QString&)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentTextChanged(const QString&)</slot> + </connection> + <connection> + <sender>functionListView</sender> + <signal>selectionChanged(QListViewItem*)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentItemChanged(QListViewItem*)</slot> + </connection> + <connection> + <sender>functionListView</sender> + <signal>currentChanged(QListViewItem*)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentItemChanged(QListViewItem*)</slot> + </connection> + <connection> + <sender>editType</sender> + <signal>textChanged(const QString&)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentReturnTypeChanged(const QString&)</slot> + </connection> + <connection> + <sender>functionSpecifier</sender> + <signal>activated(const QString&)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentSpecifierChanged(const QString&)</slot> + </connection> + <connection> + <sender>functionAccess</sender> + <signal>activated(const QString&)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentAccessChanged(const QString&)</slot> + </connection> + <connection> + <sender>functionType</sender> + <signal>activated(const QString&)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>currentTypeChanged(const QString&)</slot> + </connection> + <connection> + <sender>showOnlySlots</sender> + <signal>toggled(bool)</signal> + <receiver>EditFunctionsBase</receiver> + <slot>displaySlots(bool)</slot> + </connection> +</connections> +<tabstops> + <tabstop>functionName</tabstop> + <tabstop>editType</tabstop> + <tabstop>functionSpecifier</tabstop> + <tabstop>functionAccess</tabstop> + <tabstop>functionType</tabstop> + <tabstop>helpButton</tabstop> + <tabstop>okButton</tabstop> + <tabstop>cancelButton</tabstop> + <tabstop>functionListView</tabstop> + <tabstop>showOnlySlots</tabstop> + <tabstop>addFunction</tabstop> + <tabstop>deleteFunction</tabstop> +</tabstops> +<slots> + <slot access="protected">currentItemChanged( QListViewItem * )</slot> + <slot access="protected">currentSpecifierChanged( const QString & )</slot> + <slot access="protected">currentTextChanged( const QString & )</slot> + <slot access="protected">currentReturnTypeChanged( const QString & )</slot> + <slot access="protected">destroy()</slot> + <slot access="protected">init()</slot> + <slot access="protected">currentAccessChanged( const QString & )</slot> + <slot access="protected">currentTypeChanged( const QString & )</slot> + <slot access="protected">okClicked()</slot> + <slot access="protected">functionAdd()</slot> + <slot access="protected">functionRemove()</slot> + <slot access="protected">displaySlots( bool )</slot> +</slots> +<layoutdefaults spacing="6" margin="11"/> +</UI> |