2011-04-27 10:05:43 +00:00
|
|
|
/*
|
|
|
|
*********************************************************************
|
|
|
|
**
|
2012-01-05 04:03:39 +00:00
|
|
|
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2012-01-20 03:06:31 +00:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
|
|
**
|
|
|
|
** $QT_BEGIN_LICENSE:LGPL$
|
|
|
|
** GNU Lesser General Public License Usage
|
2011-05-24 09:34:08 +00:00
|
|
|
** 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.
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-05-24 09:34:08 +00:00
|
|
|
** rights. These rights are described in the Nokia 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
|
|
|
|
** 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.
|
|
|
|
**
|
|
|
|
** Other Usage
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
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 'trpreviewtool.ui'
|
|
|
|
**
|
|
|
|
** Created: Fri Sep 4 10:17:15 2009
|
|
|
|
** by: Qt User Interface Compiler version 4.6.0
|
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef TRPREVIEWTOOL_H
|
|
|
|
#define TRPREVIEWTOOL_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QDockWidget>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QListView>
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
#include <QtWidgets/QMenu>
|
|
|
|
#include <QtWidgets/QMenuBar>
|
|
|
|
#include <QtWidgets/QStatusBar>
|
|
|
|
#include <QtWidgets/QToolBar>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_TrPreviewToolClass
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QAction *actionOpenForm;
|
|
|
|
QAction *actionLoadTranslation;
|
|
|
|
QAction *actionReloadTranslations;
|
|
|
|
QAction *actionClose;
|
|
|
|
QAction *actionAbout;
|
|
|
|
QAction *actionAbout_Qt;
|
|
|
|
QWidget *centralWidget;
|
|
|
|
QMenuBar *menuBar;
|
|
|
|
QMenu *menuView;
|
|
|
|
QMenu *menuViewViews;
|
|
|
|
QMenu *menuHelp;
|
|
|
|
QMenu *menuFile;
|
|
|
|
QToolBar *mainToolBar;
|
|
|
|
QStatusBar *statusBar;
|
|
|
|
QDockWidget *dwForms;
|
|
|
|
QWidget *dockWidgetContents;
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QListView *viewForms;
|
|
|
|
|
|
|
|
void setupUi(QMainWindow *TrPreviewToolClass)
|
|
|
|
{
|
|
|
|
if (TrPreviewToolClass->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
TrPreviewToolClass->setObjectName(QStringLiteral("TrPreviewToolClass"));
|
2011-04-27 10:05:43 +00:00
|
|
|
TrPreviewToolClass->resize(593, 466);
|
|
|
|
actionOpenForm = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionOpenForm->setObjectName(QStringLiteral("actionOpenForm"));
|
2011-04-27 10:05:43 +00:00
|
|
|
const QIcon icon = QIcon(QString::fromUtf8(":/images/open_form.png"));
|
|
|
|
actionOpenForm->setIcon(icon);
|
|
|
|
actionLoadTranslation = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionLoadTranslation->setObjectName(QStringLiteral("actionLoadTranslation"));
|
2011-04-27 10:05:43 +00:00
|
|
|
const QIcon icon1 = QIcon(QString::fromUtf8(":/images/load_translation.png"));
|
|
|
|
actionLoadTranslation->setIcon(icon1);
|
|
|
|
actionReloadTranslations = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionReloadTranslations->setObjectName(QStringLiteral("actionReloadTranslations"));
|
2011-04-27 10:05:43 +00:00
|
|
|
const QIcon icon2 = QIcon(QString::fromUtf8(":/images/reload_translations.png"));
|
|
|
|
actionReloadTranslations->setIcon(icon2);
|
|
|
|
actionClose = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionClose->setObjectName(QStringLiteral("actionClose"));
|
2011-04-27 10:05:43 +00:00
|
|
|
actionAbout = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionAbout->setObjectName(QStringLiteral("actionAbout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
actionAbout_Qt = new QAction(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
actionAbout_Qt->setObjectName(QStringLiteral("actionAbout_Qt"));
|
2011-04-27 10:05:43 +00:00
|
|
|
centralWidget = new QWidget(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
centralWidget->setObjectName(QStringLiteral("centralWidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
TrPreviewToolClass->setCentralWidget(centralWidget);
|
|
|
|
menuBar = new QMenuBar(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
menuBar->setObjectName(QStringLiteral("menuBar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menuBar->setGeometry(QRect(0, 0, 593, 21));
|
|
|
|
menuView = new QMenu(menuBar);
|
2011-12-11 15:55:01 +00:00
|
|
|
menuView->setObjectName(QStringLiteral("menuView"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menuViewViews = new QMenu(menuView);
|
2011-12-11 15:55:01 +00:00
|
|
|
menuViewViews->setObjectName(QStringLiteral("menuViewViews"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menuHelp = new QMenu(menuBar);
|
2011-12-11 15:55:01 +00:00
|
|
|
menuHelp->setObjectName(QStringLiteral("menuHelp"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menuFile = new QMenu(menuBar);
|
2011-12-11 15:55:01 +00:00
|
|
|
menuFile->setObjectName(QStringLiteral("menuFile"));
|
2011-04-27 10:05:43 +00:00
|
|
|
TrPreviewToolClass->setMenuBar(menuBar);
|
|
|
|
mainToolBar = new QToolBar(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
mainToolBar->setOrientation(Qt::Horizontal);
|
|
|
|
TrPreviewToolClass->addToolBar(static_cast<Qt::ToolBarArea>(4), mainToolBar);
|
|
|
|
statusBar = new QStatusBar(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
statusBar->setObjectName(QStringLiteral("statusBar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
TrPreviewToolClass->setStatusBar(statusBar);
|
|
|
|
dwForms = new QDockWidget(TrPreviewToolClass);
|
2011-12-11 15:55:01 +00:00
|
|
|
dwForms->setObjectName(QStringLiteral("dwForms"));
|
2011-04-27 10:05:43 +00:00
|
|
|
dockWidgetContents = new QWidget();
|
2011-12-11 15:55:01 +00:00
|
|
|
dockWidgetContents->setObjectName(QStringLiteral("dockWidgetContents"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout = new QVBoxLayout(dockWidgetContents);
|
|
|
|
vboxLayout->setSpacing(0);
|
|
|
|
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
viewForms = new QListView(dockWidgetContents);
|
2011-12-11 15:55:01 +00:00
|
|
|
viewForms->setObjectName(QStringLiteral("viewForms"));
|
2011-04-27 10:05:43 +00:00
|
|
|
viewForms->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
|
|
|
viewForms->setAlternatingRowColors(true);
|
|
|
|
viewForms->setUniformItemSizes(true);
|
|
|
|
|
|
|
|
vboxLayout->addWidget(viewForms);
|
|
|
|
|
|
|
|
dwForms->setWidget(dockWidgetContents);
|
|
|
|
TrPreviewToolClass->addDockWidget(static_cast<Qt::DockWidgetArea>(1), dwForms);
|
|
|
|
|
|
|
|
menuBar->addAction(menuFile->menuAction());
|
|
|
|
menuBar->addAction(menuView->menuAction());
|
|
|
|
menuBar->addAction(menuHelp->menuAction());
|
|
|
|
menuView->addAction(menuViewViews->menuAction());
|
|
|
|
menuHelp->addAction(actionAbout);
|
|
|
|
menuHelp->addAction(actionAbout_Qt);
|
|
|
|
menuFile->addAction(actionOpenForm);
|
|
|
|
menuFile->addAction(actionLoadTranslation);
|
|
|
|
menuFile->addAction(actionReloadTranslations);
|
|
|
|
menuFile->addSeparator();
|
|
|
|
menuFile->addAction(actionClose);
|
|
|
|
mainToolBar->addAction(actionOpenForm);
|
|
|
|
mainToolBar->addAction(actionLoadTranslation);
|
|
|
|
mainToolBar->addAction(actionReloadTranslations);
|
|
|
|
|
|
|
|
retranslateUi(TrPreviewToolClass);
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(TrPreviewToolClass);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QMainWindow *TrPreviewToolClass)
|
|
|
|
{
|
|
|
|
TrPreviewToolClass->setWindowTitle(QApplication::translate("TrPreviewToolClass", "Qt Translation Preview Tool", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionOpenForm->setText(QApplication::translate("TrPreviewToolClass", "&Open Form...", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionLoadTranslation->setText(QApplication::translate("TrPreviewToolClass", "&Load Translation...", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionReloadTranslations->setText(QApplication::translate("TrPreviewToolClass", "&Reload Translations", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionReloadTranslations->setShortcut(QApplication::translate("TrPreviewToolClass", "F5", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionClose->setText(QApplication::translate("TrPreviewToolClass", "&Close", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionAbout->setText(QApplication::translate("TrPreviewToolClass", "About", 0, QApplication::UnicodeUTF8));
|
|
|
|
actionAbout_Qt->setText(QApplication::translate("TrPreviewToolClass", "About Qt", 0, QApplication::UnicodeUTF8));
|
|
|
|
menuView->setTitle(QApplication::translate("TrPreviewToolClass", "&View", 0, QApplication::UnicodeUTF8));
|
|
|
|
menuViewViews->setTitle(QApplication::translate("TrPreviewToolClass", "&Views", 0, QApplication::UnicodeUTF8));
|
|
|
|
menuHelp->setTitle(QApplication::translate("TrPreviewToolClass", "&Help", 0, QApplication::UnicodeUTF8));
|
|
|
|
menuFile->setTitle(QApplication::translate("TrPreviewToolClass", "&File", 0, QApplication::UnicodeUTF8));
|
|
|
|
dwForms->setWindowTitle(QApplication::translate("TrPreviewToolClass", "Forms", 0, QApplication::UnicodeUTF8));
|
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TrPreviewToolClass: public Ui_TrPreviewToolClass {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // TRPREVIEWTOOL_H
|