You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/kdevdesigner/designer/tableeditor.ui

829 lines
38 KiB

<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>TableEditorBase</class>
<comment>*********************************************************************
** Copyright (C) 2001 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 sales@trolltech.com for
** information about Qt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
*********************************************************************</comment>
<widget class="TQDialog">
<property name="name">
<cstring>TableEditorBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>484</width>
<height>406</height>
</rect>
</property>
<property name="caption">
<string>Edit Table</string>
</property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQTable" row="0" column="0">
<property name="name">
<cstring>table</cstring>
</property>
<property name="numRows">
<number>1</number>
</property>
<property name="numCols">
<number>1</number>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout11</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="TQPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
<property name="text">
<string>&amp;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="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
<property name="text">
<string>&amp;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="TQPushButton">
<property name="name">
<cstring>buttonApply</cstring>
</property>
<property name="text">
<string>&amp;Apply</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="whatsThis" stdset="0">
<string>Apply all changes.</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
<property name="text">
<string>&amp;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>
<widget class="TQTabWidget" row="0" column="1">
<property name="name">
<cstring>TabWidget</cstring>
</property>
<widget class="TQWidget">
<property name="name">
<cstring>columns_tab</cstring>
</property>
<attribute name="title">
<string>Co&amp;lumns</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<spacer row="4" column="2">
<property name="name">
<cstring>Spacer3</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="TQListBox" row="0" column="0" rowspan="6" colspan="1">
<property name="name">
<cstring>listColumns</cstring>
</property>
</widget>
<spacer row="3" column="1">
<property name="name">
<cstring>Spacer2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQPushButton" row="4" column="1">
<property name="name">
<cstring>buttonColumnUp</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_up.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Move up</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Move the selected item up.&lt;/b&gt;&lt;p&gt;The top-most column will be the first column of the list.&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQPushButton" row="5" column="1">
<property name="name">
<cstring>buttonColumnDown</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_down.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Move down</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Move the selected item down.&lt;/b&gt;&lt;p&gt;The top-most column will be the first column of the list.&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>buttonDeleteColumn</cstring>
</property>
<property name="text">
<string>&amp;Delete Column</string>
</property>
</widget>
<widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>buttonNewColumn</cstring>
</property>
<property name="text">
<string>&amp;New Column</string>
</property>
</widget>
<widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout6</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>labelTable</cstring>
</property>
<property name="text">
<string>Table:</string>
</property>
</widget>
<widget class="TQLayoutWidget" row="3" column="1">
<property name="name">
<cstring>Layout2</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="TQLabel">
<property name="name">
<cstring>labelColumnPixmap</cstring>
</property>
<property name="text">
<string>Label4</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>buttonDeleteColPixmap</cstring>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_editcut.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Delete Pixmap</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Delete the selected item's pixmap.&lt;/b&gt;&lt;p&gt;The pixmap in the current column of the selected item will be deleted.&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>buttonChooseColPixmap</cstring>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="toolTip" stdset="0">
<string>Select a Pixmap</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Select a pixmap file for the item.&lt;/b&gt;&lt;p&gt;The pixmap will be changed in the current column of the selected item.&lt;/p&gt;</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
<property name="text">
<string>&amp;Label:</string>
</property>
<property name="buddy" stdset="0">
<cstring>editColumnText</cstring>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>Label2</cstring>
</property>
<property name="text">
<string>Pixmap:</string>
</property>
<property name="buddy" stdset="0">
<cstring>itemChoosePixmap</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>labelFields</cstring>
</property>
<property name="text">
<string>&amp;Field:</string>
</property>
<property name="buddy" stdset="0">
<cstring>comboFields</cstring>
</property>
</widget>
<widget class="KLineEdit" row="2" column="1">
<property name="name">
<cstring>editColumnText</cstring>
</property>
</widget>
<widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>comboFields</cstring>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
<widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>labelTableValue</cstring>
</property>
<property name="text">
<string>&lt;no table&gt;</string>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<widget class="TQWidget">
<property name="name">
<cstring>rows_tab</cstring>
</property>
<attribute name="title">
<string>&amp;Rows</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<spacer row="4" column="2">
<property name="name">
<cstring>Spacer3_2</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="TQPushButton" row="4" column="1">
<property name="name">
<cstring>buttonRowUp</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_up.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Move up</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Move the selected item up.&lt;/b&gt;&lt;p&gt;The top-most column will be the first column of the list.&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQListBox" row="0" column="0" rowspan="6" colspan="1">
<property name="name">
<cstring>listRows</cstring>
</property>
</widget>
<widget class="TQPushButton" row="5" column="1">
<property name="name">
<cstring>buttonRowDown</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_down.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Move down</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Move the selected item down.&lt;/b&gt;&lt;p&gt;The top-most column will be the first column of the list.&lt;/p&gt;</string>
</property>
</widget>
<spacer row="3" column="1">
<property name="name">
<cstring>Spacer2_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>buttonNewRow</cstring>
</property>
<property name="text">
<string>&amp;New Row</string>
</property>
</widget>
<widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>buttonDeleteRow</cstring>
</property>
<property name="text">
<string>&amp;Delete Row</string>
</property>
</widget>
<widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout7_2</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel2_3</cstring>
</property>
<property name="text">
<string>&amp;Label:</string>
</property>
<property name="buddy" stdset="0">
<cstring>editRowText</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>Label2_2</cstring>
</property>
<property name="text">
<string>Pixmap:</string>
</property>
<property name="buddy" stdset="0">
<cstring>itemChoosePixmap</cstring>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
<cstring>Layout2_2</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="TQLabel">
<property name="name">
<cstring>labelRowPixmap</cstring>
</property>
<property name="text">
<string>Label4</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>buttonDeleteRowPixmap</cstring>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string></string>
</property>
<property name="pixmap">
<pixmap>"designer_s_editcut.png"</pixmap>
</property>
<property name="toolTip" stdset="0">
<string>Delete Pixmap</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Delete the selected item's pixmap.&lt;/b&gt;&lt;p&gt;The pixmap in the current column of the selected item will be deleted.&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>buttonChooseRowPixmap</cstring>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="toolTip" stdset="0">
<string>Select a Pixmap</string>
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Select a pixmap file for the item.&lt;/b&gt;&lt;p&gt;The pixmap will be changed in the current column of the selected item.&lt;/p&gt;</string>
</property>
</widget>
</hbox>
</widget>
<widget class="KLineEdit" row="0" column="1">
<property name="name">
<cstring>editRowText</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>buttonApply</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>applyClicked()</slot>
</connection>
<connection>
<sender>buttonOk</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>okClicked()</slot>
</connection>
<connection>
<sender>listColumns</sender>
<signal>currentChanged(TQListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentColumnChanged(TQListBoxItem*)</slot>
</connection>
<connection>
<sender>listColumns</sender>
<signal>selectionChanged(TQListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentColumnChanged(TQListBoxItem*)</slot>
</connection>
<connection>
<sender>editColumnText</sender>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>TableEditorBase</receiver>
<slot>columnTextChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>buttonNewColumn</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>newColumnClicked()</slot>
</connection>
<connection>
<sender>buttonDeleteColumn</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>deleteColumnClicked()</slot>
</connection>
<connection>
<sender>buttonColumnUp</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>columnUpClicked()</slot>
</connection>
<connection>
<sender>buttonColumnDown</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>columnDownClicked()</slot>
</connection>
<connection>
<sender>comboFields</sender>
<signal>activated(const TQString&amp;)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentFieldChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>listRows</sender>
<signal>selectionChanged(TQListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentRowChanged(TQListBoxItem*)</slot>
</connection>
<connection>
<sender>listRows</sender>
<signal>currentChanged(TQListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentRowChanged(TQListBoxItem*)</slot>
</connection>
<connection>
<sender>buttonNewRow</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>newRowClicked()</slot>
</connection>
<connection>
<sender>buttonDeleteRow</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>deleteRowClicked()</slot>
</connection>
<connection>
<sender>buttonRowUp</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>rowUpClicked()</slot>
</connection>
<connection>
<sender>buttonRowDown</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>rowDownClicked()</slot>
</connection>
<connection>
<sender>buttonChooseRowPixmap</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>chooseRowPixmapClicked()</slot>
</connection>
<connection>
<sender>buttonDeleteColPixmap</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>deleteColPixmapClicked()</slot>
</connection>
<connection>
<sender>editRowText</sender>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>TableEditorBase</receiver>
<slot>rowTextChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>buttonCancel</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>reject()</slot>
</connection>
<connection>
<sender>buttonChooseColPixmap</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>chooseColPixmapClicked()</slot>
</connection>
<connection>
<sender>buttonDeleteRowPixmap</sender>
<signal>clicked()</signal>
<receiver>TableEditorBase</receiver>
<slot>deleteRowPixmapClicked()</slot>
</connection>
</connections>
<tabstops>
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
<tabstop>table</tabstop>
<tabstop>TabWidget</tabstop>
<tabstop>listColumns</tabstop>
<tabstop>buttonNewColumn</tabstop>
<tabstop>buttonDeleteColumn</tabstop>
<tabstop>comboFields</tabstop>
<tabstop>editColumnText</tabstop>
<tabstop>buttonDeleteColPixmap</tabstop>
<tabstop>buttonChooseColPixmap</tabstop>
<tabstop>buttonColumnUp</tabstop>
<tabstop>buttonColumnDown</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>listRows</tabstop>
<tabstop>buttonNewRow</tabstop>
<tabstop>buttonDeleteRow</tabstop>
<tabstop>editRowText</tabstop>
<tabstop>buttonDeleteRowPixmap</tabstop>
<tabstop>buttonChooseRowPixmap</tabstop>
<tabstop>buttonRowUp</tabstop>
<tabstop>buttonRowDown</tabstop>
<tabstop>buttonHelp</tabstop>
</tabstops>
<includes>
<include location="global" impldecl="in implementation">tqtable.h</include>
</includes>
<Q_SLOTS>
<slot access="protected">init()</slot>
<slot access="protected">destroy()</slot>
<slot access="protected">applyClicked()</slot>
<slot access="protected">chooseRowPixmapClicked()</slot>
<slot access="protected">columnTextChanged( const TQString &amp; )</slot>
<slot access="protected">columnUpClicked()</slot>
<slot access="protected">currentColumnChanged( TQListBoxItem * )</slot>
<slot access="protected">currentFieldChanged( const TQString &amp; )</slot>
<slot access="protected">currentRowChanged( TQListBoxItem * )</slot>
<slot access="protected">deleteColPixmapClicked()</slot>
<slot access="protected">deleteColumnClicked()</slot>
<slot access="protected">deleteRowClicked()</slot>
<slot access="protected">deleteRowPixmapClicked()</slot>
<slot access="protected">newColumnClicked()</slot>
<slot access="protected">newRowClicked()</slot>
<slot access="protected">chooseColPixmapClicked()</slot>
<slot access="protected">okClicked()</slot>
<slot access="protected">rowDownClicked()</slot>
<slot access="protected">rowTextChanged( const TQString &amp; )</slot>
<slot access="protected">rowUpClicked()</slot>
<slot access="protected">columnDownClicked()</slot>
</Q_SLOTS>
<includes>
<include location="local" impldecl="in implementation">myiconloader.h</include>
</includes>
<pixmapfunction>BarIcon2</pixmapfunction>
<layoutdefaults spacing="6" margin="11"/>
</UI>