Alessandro Bonazzi 8c43d5cf2f Patch level : 12.00
Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
2025-04-06 00:42:21 +02:00

755 lines
29 KiB
Groff

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" stdsetdef="1">
<author></author>
<comment>*********************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at http://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** As a special exception, The Qt Company gives you certain additional
** rights. These rights are described in The Qt Company LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<exportmacro></exportmacro>
<class>TableEditorBase</class>
<widget class="QDialog" name="TableEditorBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>484</width>
<height>406</height>
</rect>
</property>
<property name="windowTitle">
<string>Edit Table</string>
</property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="Q3Table" name="table">
<property name="numRows">
<number>1</number>
</property>
<property name="numCols">
<number>1</number>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" rowspan="1" colspan="2">
<layout class="QHBoxLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonHelp">
<property name="text">
<string>&amp;Help</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="Horizontal Spacing2">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonApply">
<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>
</item>
<item>
<widget class="QPushButton" name="buttonOk">
<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>
</item>
<item>
<widget class="QPushButton" name="buttonCancel">
<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>
</item>
</layout>
</item>
<item row="0" column="1">
<widget class="QTabWidget" name="TabWidget">
<widget class="QWidget" name="columns_tab">
<attribute name="title">
<string>Co&amp;lumns</string>
</attribute>
<layout class="QGridLayout">
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="4" column="2">
<spacer name="Spacer3">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item row="0" column="0" rowspan="6" colspan="1">
<widget class="Q3ListBox" name="listColumns"/>
</item>
<item row="3" column="1">
<spacer name="Spacer2">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="buttonColumnUp">
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item row="5" column="1">
<widget class="QPushButton" name="buttonColumnDown">
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="buttonDeleteColumn">
<property name="text">
<string>&amp;Delete Column</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="buttonNewColumn">
<property name="text">
<string>&amp;New Column</string>
</property>
</widget>
</item>
<item row="2" column="1" rowspan="1" colspan="2">
<layout class="QGridLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelTable">
<property name="text">
<string>Table:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1">
<layout class="QHBoxLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelColumnPixmap">
<property name="text">
<string>Label4</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonDeleteColPixmap">
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item>
<widget class="QPushButton" name="buttonChooseColPixmap">
<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>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QLabel" name="TextLabel2">
<property name="text">
<string>&amp;Label:</string>
</property>
<property name="buddy" stdset="0">
<cstring>editColumnText</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="Label2">
<property name="text">
<string>Pixmap:</string>
</property>
<property name="buddy" stdset="0">
<cstring>itemChoosePixmap</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelFields">
<property name="text">
<string>&amp;Field:</string>
</property>
<property name="buddy" stdset="0">
<cstring>comboFields</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="editColumnText"/>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="comboFields">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="labelTableValue">
<property name="text">
<string>&lt;no table&gt;</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="rows_tab">
<attribute name="title">
<string>&amp;Rows</string>
</attribute>
<layout class="QGridLayout">
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="4" column="2">
<spacer name="Spacer3_2">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="buttonRowUp">
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item row="0" column="0" rowspan="6" colspan="1">
<widget class="Q3ListBox" name="listRows"/>
</item>
<item row="5" column="1">
<widget class="QPushButton" name="buttonRowDown">
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item row="3" column="1">
<spacer name="Spacer2_2">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="buttonNewRow">
<property name="text">
<string>&amp;New Row</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="buttonDeleteRow">
<property name="text">
<string>&amp;Delete Row</string>
</property>
</widget>
</item>
<item row="2" column="1" rowspan="1" colspan="2">
<layout class="QGridLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="TextLabel2_3">
<property name="text">
<string>&amp;Label:</string>
</property>
<property name="buddy" stdset="0">
<cstring>editRowText</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="Label2_2">
<property name="text">
<string>Pixmap:</string>
</property>
<property name="buddy" stdset="0">
<cstring>itemChoosePixmap</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelRowPixmap">
<property name="text">
<string>Label4</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonDeleteRowPixmap">
<property name="maximumSize">
<size>
<width>30</width>
<height>22</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<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>
</item>
<item>
<widget class="QPushButton" name="buttonChooseRowPixmap">
<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>
</item>
</layout>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="editRowText"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<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>
<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(Q3ListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentColumnChanged(Q3ListBoxItem*)</slot>
</connection>
<connection>
<sender>listColumns</sender>
<signal>selectionChanged(Q3ListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentColumnChanged(Q3ListBoxItem*)</slot>
</connection>
<connection>
<sender>editColumnText</sender>
<signal>textChanged(QString)</signal>
<receiver>TableEditorBase</receiver>
<slot>columnTextChanged(QString)</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(QString)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentFieldChanged(QString)</slot>
</connection>
<connection>
<sender>listRows</sender>
<signal>selectionChanged(Q3ListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentRowChanged(Q3ListBoxItem*)</slot>
</connection>
<connection>
<sender>listRows</sender>
<signal>currentChanged(Q3ListBoxItem*)</signal>
<receiver>TableEditorBase</receiver>
<slot>currentRowChanged(Q3ListBoxItem*)</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(QString)</signal>
<receiver>TableEditorBase</receiver>
<slot>rowTextChanged(QString)</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>
</ui>