1 | /******************************************************************************** |
2 | ** Form generated from reading UI file 'mainwindow.ui' |
3 | ** |
4 | ** Created by: Qt User Interface Compiler version 5.15.9 |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
7 | ********************************************************************************/ |
8 | |
9 | #ifndef UI_MAINWINDOW_H |
10 | #define UI_MAINWINDOW_H |
11 | |
12 | #include <QtCore/QVariant> |
13 | #include <QtWidgets/QApplication> |
14 | #include <QtWidgets/QComboBox> |
15 | #include <QtWidgets/QGridLayout> |
16 | #include <QtWidgets/QHBoxLayout> |
17 | #include <QtWidgets/QLabel> |
18 | #include <QtWidgets/QMainWindow> |
19 | #include <QtWidgets/QPlainTextEdit> |
20 | #include <QtWidgets/QPushButton> |
21 | #include <QtWidgets/QSlider> |
22 | #include <QtWidgets/QSpacerItem> |
23 | #include <QtWidgets/QStatusBar> |
24 | #include <QtWidgets/QVBoxLayout> |
25 | #include <QtWidgets/QWidget> |
26 | |
27 | QT_BEGIN_NAMESPACE |
28 | |
29 | class Ui_MainWindow |
30 | { |
31 | public: |
32 | QWidget *centralwidget; |
33 | QVBoxLayout *verticalLayout; |
34 | QPlainTextEdit *plainTextEdit; |
35 | QGridLayout *gridLayout; |
36 | QLabel *label_5; |
37 | QLabel *label_3; |
38 | QLabel *label_4; |
39 | QSlider *pitch; |
40 | QLabel *label_6; |
41 | QSlider *volume; |
42 | QComboBox *language; |
43 | QComboBox *voice; |
44 | QLabel *label; |
45 | QLabel *label_2; |
46 | QSlider *rate; |
47 | QComboBox *engine; |
48 | QHBoxLayout *horizontalLayout; |
49 | QPushButton *speakButton; |
50 | QPushButton *pauseButton; |
51 | QPushButton *resumeButton; |
52 | QPushButton *stopButton; |
53 | QSpacerItem *verticalSpacer; |
54 | QStatusBar *statusbar; |
55 | |
56 | void setupUi(QMainWindow *MainWindow) |
57 | { |
58 | if (MainWindow->objectName().isEmpty()) |
59 | MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow" )); |
60 | MainWindow->resize(w: 551, h: 448); |
61 | centralwidget = new QWidget(MainWindow); |
62 | centralwidget->setObjectName(QString::fromUtf8(str: "centralwidget" )); |
63 | verticalLayout = new QVBoxLayout(centralwidget); |
64 | verticalLayout->setObjectName(QString::fromUtf8(str: "verticalLayout" )); |
65 | plainTextEdit = new QPlainTextEdit(centralwidget); |
66 | plainTextEdit->setObjectName(QString::fromUtf8(str: "plainTextEdit" )); |
67 | QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
68 | sizePolicy.setHorizontalStretch(0); |
69 | sizePolicy.setVerticalStretch(0); |
70 | sizePolicy.setHeightForWidth(plainTextEdit->sizePolicy().hasHeightForWidth()); |
71 | plainTextEdit->setSizePolicy(sizePolicy); |
72 | |
73 | verticalLayout->addWidget(plainTextEdit); |
74 | |
75 | gridLayout = new QGridLayout(); |
76 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
77 | label_5 = new QLabel(centralwidget); |
78 | label_5->setObjectName(QString::fromUtf8(str: "label_5" )); |
79 | QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred); |
80 | sizePolicy1.setHorizontalStretch(0); |
81 | sizePolicy1.setVerticalStretch(0); |
82 | sizePolicy1.setHeightForWidth(label_5->sizePolicy().hasHeightForWidth()); |
83 | label_5->setSizePolicy(sizePolicy1); |
84 | label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
85 | |
86 | gridLayout->addWidget(label_5, row: 4, column: 0, rowSpan: 1, columnSpan: 1); |
87 | |
88 | label_3 = new QLabel(centralwidget); |
89 | label_3->setObjectName(QString::fromUtf8(str: "label_3" )); |
90 | sizePolicy1.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth()); |
91 | label_3->setSizePolicy(sizePolicy1); |
92 | label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
93 | |
94 | gridLayout->addWidget(label_3, row: 3, column: 0, rowSpan: 1, columnSpan: 1); |
95 | |
96 | label_4 = new QLabel(centralwidget); |
97 | label_4->setObjectName(QString::fromUtf8(str: "label_4" )); |
98 | sizePolicy1.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth()); |
99 | label_4->setSizePolicy(sizePolicy1); |
100 | label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
101 | |
102 | gridLayout->addWidget(label_4, row: 5, column: 0, rowSpan: 1, columnSpan: 1); |
103 | |
104 | pitch = new QSlider(centralwidget); |
105 | pitch->setObjectName(QString::fromUtf8(str: "pitch" )); |
106 | pitch->setMinimum(-10); |
107 | pitch->setMaximum(10); |
108 | pitch->setSingleStep(1); |
109 | pitch->setOrientation(Qt::Horizontal); |
110 | |
111 | gridLayout->addWidget(pitch, row: 3, column: 2, rowSpan: 1, columnSpan: 1); |
112 | |
113 | label_6 = new QLabel(centralwidget); |
114 | label_6->setObjectName(QString::fromUtf8(str: "label_6" )); |
115 | label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
116 | |
117 | gridLayout->addWidget(label_6, row: 6, column: 0, rowSpan: 1, columnSpan: 1); |
118 | |
119 | volume = new QSlider(centralwidget); |
120 | volume->setObjectName(QString::fromUtf8(str: "volume" )); |
121 | volume->setMaximum(100); |
122 | volume->setSingleStep(5); |
123 | volume->setPageStep(20); |
124 | volume->setValue(70); |
125 | volume->setOrientation(Qt::Horizontal); |
126 | |
127 | gridLayout->addWidget(volume, row: 1, column: 2, rowSpan: 1, columnSpan: 1); |
128 | |
129 | language = new QComboBox(centralwidget); |
130 | language->setObjectName(QString::fromUtf8(str: "language" )); |
131 | QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed); |
132 | sizePolicy2.setHorizontalStretch(0); |
133 | sizePolicy2.setVerticalStretch(0); |
134 | sizePolicy2.setHeightForWidth(language->sizePolicy().hasHeightForWidth()); |
135 | language->setSizePolicy(sizePolicy2); |
136 | |
137 | gridLayout->addWidget(language, row: 5, column: 2, rowSpan: 1, columnSpan: 1); |
138 | |
139 | voice = new QComboBox(centralwidget); |
140 | voice->setObjectName(QString::fromUtf8(str: "voice" )); |
141 | |
142 | gridLayout->addWidget(voice, row: 6, column: 2, rowSpan: 1, columnSpan: 1); |
143 | |
144 | label = new QLabel(centralwidget); |
145 | label->setObjectName(QString::fromUtf8(str: "label" )); |
146 | sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth()); |
147 | label->setSizePolicy(sizePolicy1); |
148 | label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
149 | |
150 | gridLayout->addWidget(label, row: 2, column: 0, rowSpan: 1, columnSpan: 1); |
151 | |
152 | label_2 = new QLabel(centralwidget); |
153 | label_2->setObjectName(QString::fromUtf8(str: "label_2" )); |
154 | sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth()); |
155 | label_2->setSizePolicy(sizePolicy1); |
156 | label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
157 | |
158 | gridLayout->addWidget(label_2, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
159 | |
160 | rate = new QSlider(centralwidget); |
161 | rate->setObjectName(QString::fromUtf8(str: "rate" )); |
162 | rate->setMinimum(-10); |
163 | rate->setMaximum(10); |
164 | rate->setOrientation(Qt::Horizontal); |
165 | |
166 | gridLayout->addWidget(rate, row: 2, column: 2, rowSpan: 1, columnSpan: 1); |
167 | |
168 | engine = new QComboBox(centralwidget); |
169 | engine->setObjectName(QString::fromUtf8(str: "engine" )); |
170 | sizePolicy2.setHeightForWidth(engine->sizePolicy().hasHeightForWidth()); |
171 | engine->setSizePolicy(sizePolicy2); |
172 | |
173 | gridLayout->addWidget(engine, row: 4, column: 2, rowSpan: 1, columnSpan: 1); |
174 | |
175 | |
176 | verticalLayout->addLayout(layout: gridLayout); |
177 | |
178 | horizontalLayout = new QHBoxLayout(); |
179 | horizontalLayout->setObjectName(QString::fromUtf8(str: "horizontalLayout" )); |
180 | speakButton = new QPushButton(centralwidget); |
181 | speakButton->setObjectName(QString::fromUtf8(str: "speakButton" )); |
182 | |
183 | horizontalLayout->addWidget(speakButton); |
184 | |
185 | pauseButton = new QPushButton(centralwidget); |
186 | pauseButton->setObjectName(QString::fromUtf8(str: "pauseButton" )); |
187 | pauseButton->setEnabled(false); |
188 | |
189 | horizontalLayout->addWidget(pauseButton); |
190 | |
191 | resumeButton = new QPushButton(centralwidget); |
192 | resumeButton->setObjectName(QString::fromUtf8(str: "resumeButton" )); |
193 | resumeButton->setEnabled(false); |
194 | |
195 | horizontalLayout->addWidget(resumeButton); |
196 | |
197 | stopButton = new QPushButton(centralwidget); |
198 | stopButton->setObjectName(QString::fromUtf8(str: "stopButton" )); |
199 | |
200 | horizontalLayout->addWidget(stopButton); |
201 | |
202 | |
203 | verticalLayout->addLayout(layout: horizontalLayout); |
204 | |
205 | verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
206 | |
207 | verticalLayout->addItem(verticalSpacer); |
208 | |
209 | MainWindow->setCentralWidget(centralwidget); |
210 | statusbar = new QStatusBar(MainWindow); |
211 | statusbar->setObjectName(QString::fromUtf8(str: "statusbar" )); |
212 | MainWindow->setStatusBar(statusbar); |
213 | #if QT_CONFIG(shortcut) |
214 | label_4->setBuddy(language); |
215 | #endif // QT_CONFIG(shortcut) |
216 | QWidget::setTabOrder(plainTextEdit, speakButton); |
217 | QWidget::setTabOrder(speakButton, pauseButton); |
218 | QWidget::setTabOrder(pauseButton, resumeButton); |
219 | QWidget::setTabOrder(resumeButton, stopButton); |
220 | |
221 | retranslateUi(MainWindow); |
222 | |
223 | QMetaObject::connectSlotsByName(o: MainWindow); |
224 | } // setupUi |
225 | |
226 | void retranslateUi(QMainWindow *MainWindow) |
227 | { |
228 | MainWindow->setWindowTitle(QCoreApplication::translate(context: "MainWindow" , key: "MainWindow" , disambiguation: nullptr)); |
229 | plainTextEdit->setPlainText(QCoreApplication::translate(context: "MainWindow" , key: "Hello QtTextToSpeech,\n" |
230 | "this is an example text in English.\n" |
231 | "\n" |
232 | "QtSpeech is a library that makes text to speech easy with Qt.\n" |
233 | "Done, over and out." , disambiguation: nullptr)); |
234 | label_5->setText(QCoreApplication::translate(context: "MainWindow" , key: "Engine" , disambiguation: nullptr)); |
235 | label_3->setText(QCoreApplication::translate(context: "MainWindow" , key: "Pitch:" , disambiguation: nullptr)); |
236 | label_4->setText(QCoreApplication::translate(context: "MainWindow" , key: "&Language:" , disambiguation: nullptr)); |
237 | label_6->setText(QCoreApplication::translate(context: "MainWindow" , key: "Voice name:" , disambiguation: nullptr)); |
238 | label->setText(QCoreApplication::translate(context: "MainWindow" , key: "Rate:" , disambiguation: nullptr)); |
239 | label_2->setText(QCoreApplication::translate(context: "MainWindow" , key: "Volume:" , disambiguation: nullptr)); |
240 | speakButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Speak" , disambiguation: nullptr)); |
241 | pauseButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Pause" , disambiguation: nullptr)); |
242 | resumeButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Resume" , disambiguation: nullptr)); |
243 | stopButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Stop" , disambiguation: nullptr)); |
244 | } // retranslateUi |
245 | |
246 | }; |
247 | |
248 | namespace Ui { |
249 | class MainWindow: public Ui_MainWindow {}; |
250 | } // namespace Ui |
251 | |
252 | QT_END_NAMESPACE |
253 | |
254 | #endif // UI_MAINWINDOW_H |
255 | |