1 /* 2 ********************************************************************* 3 ** 4 ** Copyright (C) 2015 The Qt Company Ltd. 5 ** Contact: http://www.qt.io/licensing/ 6 ** 7 ** This file is part of the autotests of the Qt Toolkit. 8 ** 9 ** $QT_BEGIN_LICENSE:LGPL$ 10 ** Commercial License Usage 11 ** Licensees holding valid commercial Qt licenses may use this file in 12 ** accordance with the commercial license agreement provided with the 13 ** Software or, alternatively, in accordance with the terms contained in 14 ** a written agreement between you and The Qt Company. For licensing terms 15 ** and conditions see http://www.qt.io/terms-conditions. For further 16 ** information use the contact form at http://www.qt.io/contact-us. 17 ** 18 ** GNU Lesser General Public License Usage 19 ** Alternatively, this file may be used under the terms of the GNU Lesser 20 ** General Public License version 2.1 or version 3 as published by the Free 21 ** Software Foundation and appearing in the file LICENSE.LGPLv21 and 22 ** LICENSE.LGPLv3 included in the packaging of this file. Please review the 23 ** following information to ensure the GNU Lesser General Public License 24 ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and 25 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 26 ** 27 ** As a special exception, The Qt Company gives you certain additional 28 ** rights. These rights are described in The Qt Company LGPL Exception 29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 30 ** 31 ** GNU General Public License Usage 32 ** Alternatively, this file may be used under the terms of the GNU 33 ** General Public License version 3.0 as published by the Free Software 34 ** Foundation and appearing in the file LICENSE.GPL included in the 35 ** packaging of this file. Please review the following information to 36 ** ensure the GNU General Public License version 3.0 requirements will be 37 ** met: http://www.gnu.org/copyleft/gpl.html. 38 ** 39 ** $QT_END_LICENSE$ 40 ** 41 ********************************************************************* 42 */ 43 44 /******************************************************************************** 45 ** Form generated from reading UI file 'trpreviewtool.ui' 46 ** 47 ** Created by: Qt User Interface Compiler version 4.8.5 48 ** 49 ** WARNING! All changes made in this file will be lost when recompiling UI file! 50 ********************************************************************************/ 51 52 #ifndef TRPREVIEWTOOL_H 53 #define TRPREVIEWTOOL_H 54 55 #include <QtCore/QVariant> 56 #include <QtGui/QAction> 57 #include <QtGui/QApplication> 58 #include <QtGui/QButtonGroup> 59 #include <QtGui/QDockWidget> 60 #include <QtGui/QHeaderView> 61 #include <QtGui/QListView> 62 #include <QtGui/QMainWindow> 63 #include <QtGui/QMenu> 64 #include <QtGui/QMenuBar> 65 #include <QtGui/QStatusBar> 66 #include <QtGui/QToolBar> 67 #include <QtGui/QVBoxLayout> 68 #include <QtGui/QWidget> 69 70 QT_BEGIN_NAMESPACE 71 72 class Ui_TrPreviewToolClass 73 { 74 public: 75 QAction *actionOpenForm; 76 QAction *actionLoadTranslation; 77 QAction *actionReloadTranslations; 78 QAction *actionClose; 79 QAction *actionAbout; 80 QAction *actionAbout_Qt; 81 QWidget *centralWidget; 82 QMenuBar *menuBar; 83 QMenu *menuView; 84 QMenu *menuViewViews; 85 QMenu *menuHelp; 86 QMenu *menuFile; 87 QToolBar *mainToolBar; 88 QStatusBar *statusBar; 89 QDockWidget *dwForms; 90 QWidget *dockWidgetContents; 91 QVBoxLayout *vboxLayout; 92 QListView *viewForms; 93 setupUi(QMainWindow * TrPreviewToolClass)94 void setupUi(QMainWindow *TrPreviewToolClass) 95 { 96 if (TrPreviewToolClass->objectName().isEmpty()) 97 TrPreviewToolClass->setObjectName(QString::fromUtf8("TrPreviewToolClass")); 98 TrPreviewToolClass->resize(593, 466); 99 actionOpenForm = new QAction(TrPreviewToolClass); 100 actionOpenForm->setObjectName(QString::fromUtf8("actionOpenForm")); 101 const QIcon icon = QIcon(QString::fromUtf8(":/images/open_form.png")); 102 actionOpenForm->setIcon(icon); 103 actionLoadTranslation = new QAction(TrPreviewToolClass); 104 actionLoadTranslation->setObjectName(QString::fromUtf8("actionLoadTranslation")); 105 const QIcon icon1 = QIcon(QString::fromUtf8(":/images/load_translation.png")); 106 actionLoadTranslation->setIcon(icon1); 107 actionReloadTranslations = new QAction(TrPreviewToolClass); 108 actionReloadTranslations->setObjectName(QString::fromUtf8("actionReloadTranslations")); 109 const QIcon icon2 = QIcon(QString::fromUtf8(":/images/reload_translations.png")); 110 actionReloadTranslations->setIcon(icon2); 111 actionClose = new QAction(TrPreviewToolClass); 112 actionClose->setObjectName(QString::fromUtf8("actionClose")); 113 actionAbout = new QAction(TrPreviewToolClass); 114 actionAbout->setObjectName(QString::fromUtf8("actionAbout")); 115 actionAbout_Qt = new QAction(TrPreviewToolClass); 116 actionAbout_Qt->setObjectName(QString::fromUtf8("actionAbout_Qt")); 117 centralWidget = new QWidget(TrPreviewToolClass); 118 centralWidget->setObjectName(QString::fromUtf8("centralWidget")); 119 TrPreviewToolClass->setCentralWidget(centralWidget); 120 menuBar = new QMenuBar(TrPreviewToolClass); 121 menuBar->setObjectName(QString::fromUtf8("menuBar")); 122 menuBar->setGeometry(QRect(0, 0, 593, 21)); 123 menuView = new QMenu(menuBar); 124 menuView->setObjectName(QString::fromUtf8("menuView")); 125 menuViewViews = new QMenu(menuView); 126 menuViewViews->setObjectName(QString::fromUtf8("menuViewViews")); 127 menuHelp = new QMenu(menuBar); 128 menuHelp->setObjectName(QString::fromUtf8("menuHelp")); 129 menuFile = new QMenu(menuBar); 130 menuFile->setObjectName(QString::fromUtf8("menuFile")); 131 TrPreviewToolClass->setMenuBar(menuBar); 132 mainToolBar = new QToolBar(TrPreviewToolClass); 133 mainToolBar->setObjectName(QString::fromUtf8("mainToolBar")); 134 mainToolBar->setOrientation(Qt::Horizontal); 135 TrPreviewToolClass->addToolBar(static_cast<Qt::ToolBarArea>(4), mainToolBar); 136 statusBar = new QStatusBar(TrPreviewToolClass); 137 statusBar->setObjectName(QString::fromUtf8("statusBar")); 138 TrPreviewToolClass->setStatusBar(statusBar); 139 dwForms = new QDockWidget(TrPreviewToolClass); 140 dwForms->setObjectName(QString::fromUtf8("dwForms")); 141 dockWidgetContents = new QWidget(); 142 dockWidgetContents->setObjectName(QString::fromUtf8("dockWidgetContents")); 143 vboxLayout = new QVBoxLayout(dockWidgetContents); 144 vboxLayout->setSpacing(0); 145 vboxLayout->setContentsMargins(0, 0, 0, 0); 146 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); 147 viewForms = new QListView(dockWidgetContents); 148 viewForms->setObjectName(QString::fromUtf8("viewForms")); 149 viewForms->setEditTriggers(QAbstractItemView::NoEditTriggers); 150 viewForms->setAlternatingRowColors(true); 151 viewForms->setUniformItemSizes(true); 152 153 vboxLayout->addWidget(viewForms); 154 155 dwForms->setWidget(dockWidgetContents); 156 TrPreviewToolClass->addDockWidget(static_cast<Qt::DockWidgetArea>(1), dwForms); 157 158 menuBar->addAction(menuFile->menuAction()); 159 menuBar->addAction(menuView->menuAction()); 160 menuBar->addAction(menuHelp->menuAction()); 161 menuView->addAction(menuViewViews->menuAction()); 162 menuHelp->addAction(actionAbout); 163 menuHelp->addAction(actionAbout_Qt); 164 menuFile->addAction(actionOpenForm); 165 menuFile->addAction(actionLoadTranslation); 166 menuFile->addAction(actionReloadTranslations); 167 menuFile->addSeparator(); 168 menuFile->addAction(actionClose); 169 mainToolBar->addAction(actionOpenForm); 170 mainToolBar->addAction(actionLoadTranslation); 171 mainToolBar->addAction(actionReloadTranslations); 172 173 retranslateUi(TrPreviewToolClass); 174 175 QMetaObject::connectSlotsByName(TrPreviewToolClass); 176 } // setupUi 177 retranslateUi(QMainWindow * TrPreviewToolClass)178 void retranslateUi(QMainWindow *TrPreviewToolClass) 179 { 180 TrPreviewToolClass->setWindowTitle(QApplication::translate("TrPreviewToolClass", "Qt Translation Preview Tool", 0, QApplication::UnicodeUTF8)); 181 actionOpenForm->setText(QApplication::translate("TrPreviewToolClass", "&Open Form...", 0, QApplication::UnicodeUTF8)); 182 actionLoadTranslation->setText(QApplication::translate("TrPreviewToolClass", "&Load Translation...", 0, QApplication::UnicodeUTF8)); 183 actionReloadTranslations->setText(QApplication::translate("TrPreviewToolClass", "&Reload Translations", 0, QApplication::UnicodeUTF8)); 184 actionReloadTranslations->setShortcut(QApplication::translate("TrPreviewToolClass", "F5", 0, QApplication::UnicodeUTF8)); 185 actionClose->setText(QApplication::translate("TrPreviewToolClass", "&Close", 0, QApplication::UnicodeUTF8)); 186 actionAbout->setText(QApplication::translate("TrPreviewToolClass", "About", 0, QApplication::UnicodeUTF8)); 187 actionAbout_Qt->setText(QApplication::translate("TrPreviewToolClass", "About Qt", 0, QApplication::UnicodeUTF8)); 188 menuView->setTitle(QApplication::translate("TrPreviewToolClass", "&View", 0, QApplication::UnicodeUTF8)); 189 menuViewViews->setTitle(QApplication::translate("TrPreviewToolClass", "&Views", 0, QApplication::UnicodeUTF8)); 190 menuHelp->setTitle(QApplication::translate("TrPreviewToolClass", "&Help", 0, QApplication::UnicodeUTF8)); 191 menuFile->setTitle(QApplication::translate("TrPreviewToolClass", "&File", 0, QApplication::UnicodeUTF8)); 192 dwForms->setWindowTitle(QApplication::translate("TrPreviewToolClass", "Forms", 0, QApplication::UnicodeUTF8)); 193 } // retranslateUi 194 195 }; 196 197 namespace Ui { 198 class TrPreviewToolClass: public Ui_TrPreviewToolClass {}; 199 } // namespace Ui 200 201 QT_END_NAMESPACE 202 203 #endif // TRPREVIEWTOOL_H 204