1 | /* |
2 | ********************************************************************* |
3 | ** |
4 | ** Copyright (C) 2016 The Qt Company Ltd. |
5 | ** Contact: https://www.qt.io/licensing/ |
6 | ** |
7 | ** This file is part of the Qt Linguist of the Qt Toolkit. |
8 | ** |
9 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
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 https://www.qt.io/terms-conditions. For further |
16 | ** information use the contact form at https://www.qt.io/contact-us. |
17 | ** |
18 | ** GNU General Public License Usage |
19 | ** Alternatively, this file may be used under the terms of the GNU |
20 | ** General Public License version 3 as published by the Free Software |
21 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
22 | ** included in the packaging of this file. Please review the following |
23 | ** information to ensure the GNU General Public License requirements will |
24 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
25 | ** |
26 | ** $QT_END_LICENSE$ |
27 | ** |
28 | ********************************************************************* |
29 | */ |
30 | |
31 | /******************************************************************************** |
32 | ** Form generated from reading UI file 'phrasebookbox.ui' |
33 | ** |
34 | ** Created by: Qt User Interface Compiler version 5.15.9 |
35 | ** |
36 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
37 | ********************************************************************************/ |
38 | |
39 | #ifndef UI_PHRASEBOOKBOX_H |
40 | #define UI_PHRASEBOOKBOX_H |
41 | |
42 | #include <QtCore/QVariant> |
43 | #include <QtWidgets/QApplication> |
44 | #include <QtWidgets/QDialog> |
45 | #include <QtWidgets/QGridLayout> |
46 | #include <QtWidgets/QHBoxLayout> |
47 | #include <QtWidgets/QHeaderView> |
48 | #include <QtWidgets/QLabel> |
49 | #include <QtWidgets/QLineEdit> |
50 | #include <QtWidgets/QPushButton> |
51 | #include <QtWidgets/QSpacerItem> |
52 | #include <QtWidgets/QTreeView> |
53 | #include <QtWidgets/QVBoxLayout> |
54 | |
55 | QT_BEGIN_NAMESPACE |
56 | |
57 | class Ui_PhraseBookBox |
58 | { |
59 | public: |
60 | QHBoxLayout *hboxLayout; |
61 | QVBoxLayout *inputsLayout; |
62 | QGridLayout *gridLayout; |
63 | QLabel *target; |
64 | QLineEdit *targetLed; |
65 | QLabel *source; |
66 | QLineEdit *definitionLed; |
67 | QLineEdit *sourceLed; |
68 | QLabel *definition; |
69 | QTreeView *phraseList; |
70 | QVBoxLayout *buttonLayout; |
71 | QPushButton *newBut; |
72 | QPushButton *removeBut; |
73 | QPushButton *settingsBut; |
74 | QPushButton *saveBut; |
75 | QPushButton *closeBut; |
76 | QSpacerItem *spacer1; |
77 | |
78 | void setupUi(QDialog *PhraseBookBox) |
79 | { |
80 | if (PhraseBookBox->objectName().isEmpty()) |
81 | PhraseBookBox->setObjectName(QString::fromUtf8(str: "PhraseBookBox" )); |
82 | PhraseBookBox->resize(w: 596, h: 454); |
83 | hboxLayout = new QHBoxLayout(PhraseBookBox); |
84 | hboxLayout->setSpacing(6); |
85 | hboxLayout->setContentsMargins(left: 11, top: 11, right: 11, bottom: 11); |
86 | hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout" )); |
87 | inputsLayout = new QVBoxLayout(); |
88 | inputsLayout->setSpacing(6); |
89 | inputsLayout->setObjectName(QString::fromUtf8(str: "inputsLayout" )); |
90 | gridLayout = new QGridLayout(); |
91 | gridLayout->setSpacing(6); |
92 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
93 | target = new QLabel(PhraseBookBox); |
94 | target->setObjectName(QString::fromUtf8(str: "target" )); |
95 | |
96 | gridLayout->addWidget(target, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
97 | |
98 | targetLed = new QLineEdit(PhraseBookBox); |
99 | targetLed->setObjectName(QString::fromUtf8(str: "targetLed" )); |
100 | |
101 | gridLayout->addWidget(targetLed, row: 1, column: 1, rowSpan: 1, columnSpan: 1); |
102 | |
103 | source = new QLabel(PhraseBookBox); |
104 | source->setObjectName(QString::fromUtf8(str: "source" )); |
105 | |
106 | gridLayout->addWidget(source, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
107 | |
108 | definitionLed = new QLineEdit(PhraseBookBox); |
109 | definitionLed->setObjectName(QString::fromUtf8(str: "definitionLed" )); |
110 | |
111 | gridLayout->addWidget(definitionLed, row: 2, column: 1, rowSpan: 1, columnSpan: 1); |
112 | |
113 | sourceLed = new QLineEdit(PhraseBookBox); |
114 | sourceLed->setObjectName(QString::fromUtf8(str: "sourceLed" )); |
115 | |
116 | gridLayout->addWidget(sourceLed, row: 0, column: 1, rowSpan: 1, columnSpan: 1); |
117 | |
118 | definition = new QLabel(PhraseBookBox); |
119 | definition->setObjectName(QString::fromUtf8(str: "definition" )); |
120 | |
121 | gridLayout->addWidget(definition, row: 2, column: 0, rowSpan: 1, columnSpan: 1); |
122 | |
123 | |
124 | inputsLayout->addLayout(layout: gridLayout); |
125 | |
126 | phraseList = new QTreeView(PhraseBookBox); |
127 | phraseList->setObjectName(QString::fromUtf8(str: "phraseList" )); |
128 | phraseList->setRootIsDecorated(false); |
129 | phraseList->setUniformRowHeights(true); |
130 | phraseList->setItemsExpandable(false); |
131 | phraseList->setSortingEnabled(true); |
132 | phraseList->setExpandsOnDoubleClick(false); |
133 | |
134 | inputsLayout->addWidget(phraseList); |
135 | |
136 | |
137 | hboxLayout->addLayout(layout: inputsLayout); |
138 | |
139 | buttonLayout = new QVBoxLayout(); |
140 | buttonLayout->setSpacing(6); |
141 | buttonLayout->setObjectName(QString::fromUtf8(str: "buttonLayout" )); |
142 | newBut = new QPushButton(PhraseBookBox); |
143 | newBut->setObjectName(QString::fromUtf8(str: "newBut" )); |
144 | |
145 | buttonLayout->addWidget(newBut); |
146 | |
147 | removeBut = new QPushButton(PhraseBookBox); |
148 | removeBut->setObjectName(QString::fromUtf8(str: "removeBut" )); |
149 | |
150 | buttonLayout->addWidget(removeBut); |
151 | |
152 | settingsBut = new QPushButton(PhraseBookBox); |
153 | settingsBut->setObjectName(QString::fromUtf8(str: "settingsBut" )); |
154 | |
155 | buttonLayout->addWidget(settingsBut); |
156 | |
157 | saveBut = new QPushButton(PhraseBookBox); |
158 | saveBut->setObjectName(QString::fromUtf8(str: "saveBut" )); |
159 | |
160 | buttonLayout->addWidget(saveBut); |
161 | |
162 | closeBut = new QPushButton(PhraseBookBox); |
163 | closeBut->setObjectName(QString::fromUtf8(str: "closeBut" )); |
164 | |
165 | buttonLayout->addWidget(closeBut); |
166 | |
167 | spacer1 = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding); |
168 | |
169 | buttonLayout->addItem(spacer1); |
170 | |
171 | |
172 | hboxLayout->addLayout(layout: buttonLayout); |
173 | |
174 | #if QT_CONFIG(shortcut) |
175 | target->setBuddy(targetLed); |
176 | source->setBuddy(sourceLed); |
177 | definition->setBuddy(definitionLed); |
178 | #endif // QT_CONFIG(shortcut) |
179 | QWidget::setTabOrder(sourceLed, targetLed); |
180 | QWidget::setTabOrder(targetLed, definitionLed); |
181 | QWidget::setTabOrder(definitionLed, newBut); |
182 | QWidget::setTabOrder(newBut, removeBut); |
183 | QWidget::setTabOrder(removeBut, saveBut); |
184 | QWidget::setTabOrder(saveBut, closeBut); |
185 | |
186 | retranslateUi(PhraseBookBox); |
187 | QObject::connect(sender: closeBut, SIGNAL(clicked()), receiver: PhraseBookBox, SLOT(reject())); |
188 | |
189 | QMetaObject::connectSlotsByName(o: PhraseBookBox); |
190 | } // setupUi |
191 | |
192 | void retranslateUi(QDialog *PhraseBookBox) |
193 | { |
194 | PhraseBookBox->setWindowTitle(QCoreApplication::translate(context: "PhraseBookBox" , key: "Edit Phrase Book" , disambiguation: nullptr)); |
195 | #if QT_CONFIG(whatsthis) |
196 | PhraseBookBox->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "This window allows you to add, modify, or delete entries in a phrase book." , disambiguation: nullptr)); |
197 | #endif // QT_CONFIG(whatsthis) |
198 | target->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "&Translation:" , disambiguation: nullptr)); |
199 | #if QT_CONFIG(whatsthis) |
200 | targetLed->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "This is the phrase in the target language corresponding to the source phrase." , disambiguation: nullptr)); |
201 | #endif // QT_CONFIG(whatsthis) |
202 | source->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "S&ource phrase:" , disambiguation: nullptr)); |
203 | #if QT_CONFIG(whatsthis) |
204 | definitionLed->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "This is a definition for the source phrase." , disambiguation: nullptr)); |
205 | #endif // QT_CONFIG(whatsthis) |
206 | #if QT_CONFIG(whatsthis) |
207 | sourceLed->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "This is the phrase in the source language." , disambiguation: nullptr)); |
208 | #endif // QT_CONFIG(whatsthis) |
209 | definition->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "&Definition:" , disambiguation: nullptr)); |
210 | #if QT_CONFIG(whatsthis) |
211 | newBut->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "Click here to add the phrase to the phrase book." , disambiguation: nullptr)); |
212 | #endif // QT_CONFIG(whatsthis) |
213 | newBut->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "&New Entry" , disambiguation: nullptr)); |
214 | #if QT_CONFIG(whatsthis) |
215 | removeBut->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "Click here to remove the entry from the phrase book." , disambiguation: nullptr)); |
216 | #endif // QT_CONFIG(whatsthis) |
217 | removeBut->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "&Remove Entry" , disambiguation: nullptr)); |
218 | settingsBut->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "Settin&gs..." , disambiguation: nullptr)); |
219 | #if QT_CONFIG(whatsthis) |
220 | saveBut->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "Click here to save the changes made." , disambiguation: nullptr)); |
221 | #endif // QT_CONFIG(whatsthis) |
222 | saveBut->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "&Save" , disambiguation: nullptr)); |
223 | #if QT_CONFIG(whatsthis) |
224 | closeBut->setWhatsThis(QCoreApplication::translate(context: "PhraseBookBox" , key: "Click here to close this window." , disambiguation: nullptr)); |
225 | #endif // QT_CONFIG(whatsthis) |
226 | closeBut->setText(QCoreApplication::translate(context: "PhraseBookBox" , key: "Close" , disambiguation: nullptr)); |
227 | } // retranslateUi |
228 | |
229 | }; |
230 | |
231 | namespace Ui { |
232 | class PhraseBookBox: public Ui_PhraseBookBox {}; |
233 | } // namespace Ui |
234 | |
235 | QT_END_NAMESPACE |
236 | |
237 | #endif // UI_PHRASEBOOKBOX_H |
238 | |