9 #ifndef UI_MAIN_WINDOW_PREFERENCES_FRAME_H 10 #define UI_MAIN_WINDOW_PREFERENCES_FRAME_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QFrame> 19 #include <QtWidgets/QGridLayout> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QPushButton> 25 #include <QtWidgets/QRadioButton> 26 #include <QtWidgets/QSpacerItem> 27 #include <QtWidgets/QVBoxLayout> 34 QVBoxLayout *verticalLayout;
35 QCheckBox *geometryCheckBox;
37 QGridLayout *gridLayout;
38 QRadioButton *foStyleSpecifiedRadioButton;
39 QLineEdit *foStyleSpecifiedLineEdit;
40 QPushButton *foStyleSpecifiedPushButton;
41 QRadioButton *foStyleLastOpenedRadioButton;
43 QHBoxLayout *horizontalLayout_2;
44 QLineEdit *maxFilterLineEdit;
46 QSpacerItem *horizontalSpacer;
47 QHBoxLayout *horizontalLayout_3;
48 QLineEdit *maxRecentLineEdit;
50 QSpacerItem *horizontalSpacer_2;
51 QCheckBox *confirmUnsavedCheckBox;
52 QHBoxLayout *horizontalLayout;
54 QComboBox *mainToolbarComboBox;
55 QSpacerItem *horizontalSpacer_4;
56 QHBoxLayout *horizontalLayout_6;
58 QComboBox *languageComboBox;
59 QSpacerItem *horizontalSpacer_6;
60 QSpacerItem *verticalSpacer;
61 QButtonGroup *openInButtonGroup;
65 if (MainWindowPreferencesFrame->objectName().isEmpty())
66 MainWindowPreferencesFrame->setObjectName(QStringLiteral(
"MainWindowPreferencesFrame"));
67 MainWindowPreferencesFrame->resize(405, 416);
68 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
69 sizePolicy.setHorizontalStretch(0);
70 sizePolicy.setVerticalStretch(0);
71 sizePolicy.setHeightForWidth(MainWindowPreferencesFrame->sizePolicy().hasHeightForWidth());
72 MainWindowPreferencesFrame->setSizePolicy(sizePolicy);
73 MainWindowPreferencesFrame->setMinimumSize(QSize(0, 384));
74 MainWindowPreferencesFrame->setFrameShape(QFrame::NoFrame);
75 MainWindowPreferencesFrame->setFrameShadow(QFrame::Plain);
76 MainWindowPreferencesFrame->setLineWidth(0);
77 verticalLayout =
new QVBoxLayout(MainWindowPreferencesFrame);
78 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
79 geometryCheckBox =
new QCheckBox(MainWindowPreferencesFrame);
80 geometryCheckBox->setObjectName(QStringLiteral(
"geometryCheckBox"));
82 verticalLayout->addWidget(geometryCheckBox);
84 label =
new QLabel(MainWindowPreferencesFrame);
85 label->setObjectName(QStringLiteral(
"label"));
87 verticalLayout->addWidget(label);
89 gridLayout =
new QGridLayout();
90 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
91 foStyleSpecifiedRadioButton =
new QRadioButton(MainWindowPreferencesFrame);
92 openInButtonGroup =
new QButtonGroup(MainWindowPreferencesFrame);
93 openInButtonGroup->setObjectName(QStringLiteral(
"openInButtonGroup"));
94 openInButtonGroup->addButton(foStyleSpecifiedRadioButton);
95 foStyleSpecifiedRadioButton->setObjectName(QStringLiteral(
"foStyleSpecifiedRadioButton"));
97 gridLayout->addWidget(foStyleSpecifiedRadioButton, 1, 0, 1, 1);
99 foStyleSpecifiedLineEdit =
new QLineEdit(MainWindowPreferencesFrame);
100 foStyleSpecifiedLineEdit->setObjectName(QStringLiteral(
"foStyleSpecifiedLineEdit"));
102 gridLayout->addWidget(foStyleSpecifiedLineEdit, 1, 1, 1, 1);
104 foStyleSpecifiedPushButton =
new QPushButton(MainWindowPreferencesFrame);
105 foStyleSpecifiedPushButton->setObjectName(QStringLiteral(
"foStyleSpecifiedPushButton"));
107 gridLayout->addWidget(foStyleSpecifiedPushButton, 1, 2, 1, 1);
109 foStyleLastOpenedRadioButton =
new QRadioButton(MainWindowPreferencesFrame);
110 openInButtonGroup->addButton(foStyleLastOpenedRadioButton);
111 foStyleLastOpenedRadioButton->setObjectName(QStringLiteral(
"foStyleLastOpenedRadioButton"));
113 gridLayout->addWidget(foStyleLastOpenedRadioButton, 0, 0, 1, 3);
116 verticalLayout->addLayout(gridLayout);
118 label_2 =
new QLabel(MainWindowPreferencesFrame);
119 label_2->setObjectName(QStringLiteral(
"label_2"));
121 verticalLayout->addWidget(label_2);
123 horizontalLayout_2 =
new QHBoxLayout();
124 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
125 maxFilterLineEdit =
new QLineEdit(MainWindowPreferencesFrame);
126 maxFilterLineEdit->setObjectName(QStringLiteral(
"maxFilterLineEdit"));
128 horizontalLayout_2->addWidget(maxFilterLineEdit);
130 label_3 =
new QLabel(MainWindowPreferencesFrame);
131 label_3->setObjectName(QStringLiteral(
"label_3"));
133 horizontalLayout_2->addWidget(label_3);
135 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
137 horizontalLayout_2->addItem(horizontalSpacer);
139 horizontalLayout_2->setStretch(2, 1);
141 verticalLayout->addLayout(horizontalLayout_2);
143 horizontalLayout_3 =
new QHBoxLayout();
144 horizontalLayout_3->setObjectName(QStringLiteral(
"horizontalLayout_3"));
145 maxRecentLineEdit =
new QLineEdit(MainWindowPreferencesFrame);
146 maxRecentLineEdit->setObjectName(QStringLiteral(
"maxRecentLineEdit"));
148 horizontalLayout_3->addWidget(maxRecentLineEdit);
150 label_4 =
new QLabel(MainWindowPreferencesFrame);
151 label_4->setObjectName(QStringLiteral(
"label_4"));
153 horizontalLayout_3->addWidget(label_4);
155 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
157 horizontalLayout_3->addItem(horizontalSpacer_2);
159 horizontalLayout_3->setStretch(2, 1);
161 verticalLayout->addLayout(horizontalLayout_3);
163 confirmUnsavedCheckBox =
new QCheckBox(MainWindowPreferencesFrame);
164 confirmUnsavedCheckBox->setObjectName(QStringLiteral(
"confirmUnsavedCheckBox"));
166 verticalLayout->addWidget(confirmUnsavedCheckBox);
168 horizontalLayout =
new QHBoxLayout();
169 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
170 label_5 =
new QLabel(MainWindowPreferencesFrame);
171 label_5->setObjectName(QStringLiteral(
"label_5"));
173 horizontalLayout->addWidget(label_5);
175 mainToolbarComboBox =
new QComboBox(MainWindowPreferencesFrame);
176 mainToolbarComboBox->setObjectName(QStringLiteral(
"mainToolbarComboBox"));
178 horizontalLayout->addWidget(mainToolbarComboBox);
180 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
182 horizontalLayout->addItem(horizontalSpacer_4);
185 verticalLayout->addLayout(horizontalLayout);
187 horizontalLayout_6 =
new QHBoxLayout();
188 horizontalLayout_6->setObjectName(QStringLiteral(
"horizontalLayout_6"));
189 label_7 =
new QLabel(MainWindowPreferencesFrame);
190 label_7->setObjectName(QStringLiteral(
"label_7"));
192 horizontalLayout_6->addWidget(label_7);
194 languageComboBox =
new QComboBox(MainWindowPreferencesFrame);
195 languageComboBox->setObjectName(QStringLiteral(
"languageComboBox"));
196 languageComboBox->setEnabled(
true);
197 languageComboBox->setMaximumSize(QSize(16777215, 16777215));
199 horizontalLayout_6->addWidget(languageComboBox);
201 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
203 horizontalLayout_6->addItem(horizontalSpacer_6);
206 verticalLayout->addLayout(horizontalLayout_6);
208 verticalSpacer =
new QSpacerItem(20, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
210 verticalLayout->addItem(verticalSpacer);
213 retranslateUi(MainWindowPreferencesFrame);
215 QMetaObject::connectSlotsByName(MainWindowPreferencesFrame);
218 void retranslateUi(QFrame *MainWindowPreferencesFrame)
220 MainWindowPreferencesFrame->setWindowTitle(QApplication::translate(
"MainWindowPreferencesFrame",
"Frame", 0));
221 #ifndef QT_NO_TOOLTIP 222 geometryCheckBox->setToolTip(QApplication::translate(
"MainWindowPreferencesFrame",
"Checking this will save the size, position, and maximized state of the main window.", 0));
223 #endif // QT_NO_TOOLTIP 224 geometryCheckBox->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Remember main window size and placement", 0));
225 label->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Open files in", 0));
226 foStyleSpecifiedRadioButton->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"This folder:", 0));
227 foStyleSpecifiedPushButton->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Browse\342\200\246", 0));
228 foStyleLastOpenedRadioButton->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"The most recently used folder", 0));
229 label_2->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Show up to", 0));
230 label_3->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"filter entries", 0));
231 label_4->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"recent files", 0));
232 confirmUnsavedCheckBox->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Confirm unsaved capture files", 0));
233 label_5->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Main toolbar style:", 0));
234 mainToolbarComboBox->clear();
235 mainToolbarComboBox->insertItems(0, QStringList()
236 << QApplication::translate(
"MainWindowPreferencesFrame",
"Icons only", 0)
237 << QApplication::translate(
"MainWindowPreferencesFrame",
"Text only", 0)
238 << QApplication::translate(
"MainWindowPreferencesFrame",
"Icons & Text", 0)
240 label_7->setText(QApplication::translate(
"MainWindowPreferencesFrame",
"Language: ", 0));
241 languageComboBox->clear();
242 languageComboBox->insertItems(0, QStringList()
243 << QApplication::translate(
"MainWindowPreferencesFrame",
"Use system setting", 0)
255 #endif // UI_MAIN_WINDOW_PREFERENCES_FRAME_H Definition: ui_about_dialog.h:291
Definition: ui_main_window_preferences_frame.h:31
Definition: main_window_preferences_frame.h:21
Definition: ui_main_window_preferences_frame.h:250