2011-04-27 10:05:43 +00:00
|
|
|
/*
|
|
|
|
*********************************************************************
|
|
|
|
**
|
2013-01-02 11:13:29 +00:00
|
|
|
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
2012-09-19 12:28:29 +00:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
|
|
**
|
|
|
|
** $QT_BEGIN_LICENSE:LGPL$
|
2012-09-19 12:28:29 +00:00
|
|
|
** 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 Digia. For licensing terms and
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
|
|
|
**
|
2011-04-27 10:05:43 +00:00
|
|
|
** GNU Lesser General Public License Usage
|
2012-09-19 12:28:29 +00:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
**
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2011-04-27 10:05:43 +00:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
**
|
2011-05-24 09:34:08 +00:00
|
|
|
** GNU General Public License Usage
|
2012-09-19 12:28:29 +00:00
|
|
|
** 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.
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
2012-01-24 06:17:24 +00:00
|
|
|
**
|
2011-04-27 10:05:43 +00:00
|
|
|
** $QT_END_LICENSE$
|
|
|
|
**
|
|
|
|
*********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'phrasebookbox.ui'
|
|
|
|
**
|
2012-12-13 12:48:18 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef PHRASEBOOKBOX_H
|
|
|
|
#define PHRASEBOOKBOX_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
#include <QtWidgets/QGridLayout>
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QLineEdit>
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
#include <QtWidgets/QSpacerItem>
|
|
|
|
#include <QtWidgets/QTreeView>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_PhraseBookBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QHBoxLayout *unnamed;
|
|
|
|
QVBoxLayout *inputsLayout;
|
|
|
|
QGridLayout *gridLayout;
|
|
|
|
QLabel *target;
|
|
|
|
QLineEdit *targetLed;
|
|
|
|
QLabel *source;
|
|
|
|
QLineEdit *definitionLed;
|
|
|
|
QLineEdit *sourceLed;
|
|
|
|
QLabel *definition;
|
|
|
|
QTreeView *phraseList;
|
|
|
|
QVBoxLayout *buttonLayout;
|
|
|
|
QPushButton *newBut;
|
|
|
|
QPushButton *removeBut;
|
|
|
|
QPushButton *saveBut;
|
|
|
|
QPushButton *closeBut;
|
|
|
|
QSpacerItem *spacer1;
|
|
|
|
|
|
|
|
void setupUi(QDialog *PhraseBookBox)
|
|
|
|
{
|
|
|
|
if (PhraseBookBox->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
PhraseBookBox->setObjectName(QStringLiteral("PhraseBookBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
PhraseBookBox->resize(596, 454);
|
|
|
|
unnamed = new QHBoxLayout(PhraseBookBox);
|
|
|
|
unnamed->setSpacing(6);
|
|
|
|
unnamed->setContentsMargins(11, 11, 11, 11);
|
2011-12-11 15:55:01 +00:00
|
|
|
unnamed->setObjectName(QStringLiteral("unnamed"));
|
2011-04-27 10:05:43 +00:00
|
|
|
inputsLayout = new QVBoxLayout();
|
|
|
|
inputsLayout->setSpacing(6);
|
2011-12-11 15:55:01 +00:00
|
|
|
inputsLayout->setObjectName(QStringLiteral("inputsLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
gridLayout = new QGridLayout();
|
|
|
|
gridLayout->setSpacing(6);
|
2011-12-11 15:55:01 +00:00
|
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
target = new QLabel(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
target->setObjectName(QStringLiteral("target"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(target, 1, 0, 1, 1);
|
|
|
|
|
|
|
|
targetLed = new QLineEdit(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
targetLed->setObjectName(QStringLiteral("targetLed"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(targetLed, 1, 1, 1, 1);
|
|
|
|
|
|
|
|
source = new QLabel(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
source->setObjectName(QStringLiteral("source"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(source, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
definitionLed = new QLineEdit(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
definitionLed->setObjectName(QStringLiteral("definitionLed"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(definitionLed, 2, 1, 1, 1);
|
|
|
|
|
|
|
|
sourceLed = new QLineEdit(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
sourceLed->setObjectName(QStringLiteral("sourceLed"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(sourceLed, 0, 1, 1, 1);
|
|
|
|
|
|
|
|
definition = new QLabel(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
definition->setObjectName(QStringLiteral("definition"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(definition, 2, 0, 1, 1);
|
|
|
|
|
|
|
|
|
|
|
|
inputsLayout->addLayout(gridLayout);
|
|
|
|
|
|
|
|
phraseList = new QTreeView(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
phraseList->setObjectName(QStringLiteral("phraseList"));
|
2011-04-27 10:05:43 +00:00
|
|
|
phraseList->setRootIsDecorated(false);
|
|
|
|
phraseList->setUniformRowHeights(true);
|
|
|
|
phraseList->setItemsExpandable(false);
|
|
|
|
phraseList->setSortingEnabled(true);
|
|
|
|
phraseList->setExpandsOnDoubleClick(false);
|
|
|
|
|
|
|
|
inputsLayout->addWidget(phraseList);
|
|
|
|
|
|
|
|
|
|
|
|
unnamed->addLayout(inputsLayout);
|
|
|
|
|
|
|
|
buttonLayout = new QVBoxLayout();
|
|
|
|
buttonLayout->setSpacing(6);
|
2011-12-11 15:55:01 +00:00
|
|
|
buttonLayout->setObjectName(QStringLiteral("buttonLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
newBut = new QPushButton(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
newBut->setObjectName(QStringLiteral("newBut"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
buttonLayout->addWidget(newBut);
|
|
|
|
|
|
|
|
removeBut = new QPushButton(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
removeBut->setObjectName(QStringLiteral("removeBut"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
buttonLayout->addWidget(removeBut);
|
|
|
|
|
|
|
|
saveBut = new QPushButton(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
saveBut->setObjectName(QStringLiteral("saveBut"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
buttonLayout->addWidget(saveBut);
|
|
|
|
|
|
|
|
closeBut = new QPushButton(PhraseBookBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
closeBut->setObjectName(QStringLiteral("closeBut"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
buttonLayout->addWidget(closeBut);
|
|
|
|
|
|
|
|
spacer1 = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
|
|
|
|
buttonLayout->addItem(spacer1);
|
|
|
|
|
|
|
|
|
|
|
|
unnamed->addLayout(buttonLayout);
|
|
|
|
|
|
|
|
#ifndef QT_NO_SHORTCUT
|
|
|
|
target->setBuddy(targetLed);
|
|
|
|
source->setBuddy(sourceLed);
|
|
|
|
definition->setBuddy(definitionLed);
|
|
|
|
#endif // QT_NO_SHORTCUT
|
|
|
|
QWidget::setTabOrder(sourceLed, targetLed);
|
|
|
|
QWidget::setTabOrder(targetLed, definitionLed);
|
|
|
|
QWidget::setTabOrder(definitionLed, newBut);
|
|
|
|
QWidget::setTabOrder(newBut, removeBut);
|
|
|
|
QWidget::setTabOrder(removeBut, saveBut);
|
|
|
|
QWidget::setTabOrder(saveBut, closeBut);
|
|
|
|
|
|
|
|
retranslateUi(PhraseBookBox);
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(PhraseBookBox);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QDialog *PhraseBookBox)
|
|
|
|
{
|
2012-05-17 00:37:23 +00:00
|
|
|
PhraseBookBox->setWindowTitle(QApplication::translate("PhraseBookBox", "Edit Phrase Book", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
PhraseBookBox->setWhatsThis(QApplication::translate("PhraseBookBox", "This window allows you to add, modify, or delete phrases in a phrase book.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
target->setText(QApplication::translate("PhraseBookBox", "&Translation:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
targetLed->setWhatsThis(QApplication::translate("PhraseBookBox", "This is the phrase in the target language corresponding to the source phrase.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
source->setText(QApplication::translate("PhraseBookBox", "S&ource phrase:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
definitionLed->setWhatsThis(QApplication::translate("PhraseBookBox", "This is a definition for the source phrase.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
sourceLed->setWhatsThis(QApplication::translate("PhraseBookBox", "This is the phrase in the source language.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
definition->setText(QApplication::translate("PhraseBookBox", "&Definition:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
newBut->setWhatsThis(QApplication::translate("PhraseBookBox", "Click here to add the phrase to the phrase book.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
newBut->setText(QApplication::translate("PhraseBookBox", "&New Phrase", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
removeBut->setWhatsThis(QApplication::translate("PhraseBookBox", "Click here to remove the phrase from the phrase book.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
removeBut->setText(QApplication::translate("PhraseBookBox", "&Remove Phrase", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
saveBut->setWhatsThis(QApplication::translate("PhraseBookBox", "Click here to save the changes made.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
saveBut->setText(QApplication::translate("PhraseBookBox", "&Save", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
closeBut->setWhatsThis(QApplication::translate("PhraseBookBox", "Click here to close this window.", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
closeBut->setText(QApplication::translate("PhraseBookBox", "Close", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PhraseBookBox: public Ui_PhraseBookBox {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // PHRASEBOOKBOX_H
|