9 #ifndef UI_NEWCLASSIFIEDAD_H 10 #define UI_NEWCLASSIFIEDAD_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 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/QTextEdit> 26 #include <QtWidgets/QVBoxLayout> 56 if (newCaDialog->objectName().isEmpty())
57 newCaDialog->setObjectName(QStringLiteral(
"newCaDialog"));
58 newCaDialog->resize(804, 687);
59 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
60 sizePolicy.setHorizontalStretch(0);
61 sizePolicy.setVerticalStretch(0);
62 sizePolicy.setHeightForWidth(newCaDialog->sizePolicy().hasHeightForWidth());
63 newCaDialog->setSizePolicy(sizePolicy);
64 newCaDialog->setMinimumSize(QSize(0, 0));
65 newCaDialog->setSizeGripEnabled(
false);
66 gridLayout =
new QGridLayout(newCaDialog);
67 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
68 verticalLayout =
new QVBoxLayout();
69 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
70 verticalLayout->setSizeConstraint(QLayout::SetMinAndMaxSize);
71 aboutLabel =
new QLabel(newCaDialog);
72 aboutLabel->setObjectName(QStringLiteral(
"aboutLabel"));
74 font.setPointSize(14);
77 aboutLabel->setFont(font);
79 verticalLayout->addWidget(aboutLabel);
81 groupSelectionLayout =
new QHBoxLayout();
82 groupSelectionLayout->setObjectName(QStringLiteral(
"groupSelectionLayout"));
83 caAboutComboBox =
new QComboBox(newCaDialog);
84 caAboutComboBox->setObjectName(QStringLiteral(
"caAboutComboBox"));
86 groupSelectionLayout->addWidget(caAboutComboBox);
88 caRegardingLabel =
new QLabel(newCaDialog);
89 caRegardingLabel->setObjectName(QStringLiteral(
"caRegardingLabel"));
90 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
91 sizePolicy1.setHorizontalStretch(0);
92 sizePolicy1.setVerticalStretch(0);
93 sizePolicy1.setHeightForWidth(caRegardingLabel->sizePolicy().hasHeightForWidth());
94 caRegardingLabel->setSizePolicy(sizePolicy1);
96 groupSelectionLayout->addWidget(caRegardingLabel);
98 caRegardingCombobox =
new QComboBox(newCaDialog);
99 caRegardingCombobox->setObjectName(QStringLiteral(
"caRegardingCombobox"));
101 groupSelectionLayout->addWidget(caRegardingCombobox);
103 caWhereLabel =
new QLabel(newCaDialog);
104 caWhereLabel->setObjectName(QStringLiteral(
"caWhereLabel"));
105 sizePolicy1.setHeightForWidth(caWhereLabel->sizePolicy().hasHeightForWidth());
106 caWhereLabel->setSizePolicy(sizePolicy1);
108 groupSelectionLayout->addWidget(caWhereLabel);
110 caWhereComboBox =
new QComboBox(newCaDialog);
111 caWhereComboBox->setObjectName(QStringLiteral(
"caWhereComboBox"));
113 groupSelectionLayout->addWidget(caWhereComboBox);
115 groupSelectionLayout->setStretch(0, 1);
116 groupSelectionLayout->setStretch(2, 1);
117 groupSelectionLayout->setStretch(4, 1);
119 verticalLayout->addLayout(groupSelectionLayout);
121 subjectLayout =
new QHBoxLayout();
122 subjectLayout->setObjectName(QStringLiteral(
"subjectLayout"));
123 subjectLabel =
new QLabel(newCaDialog);
124 subjectLabel->setObjectName(QStringLiteral(
"subjectLabel"));
126 subjectLayout->addWidget(subjectLabel);
128 subjectEdit =
new QLineEdit(newCaDialog);
129 subjectEdit->setObjectName(QStringLiteral(
"subjectEdit"));
131 subjectLayout->addWidget(subjectEdit);
133 subjectLayout->setStretch(1, 1);
135 verticalLayout->addLayout(subjectLayout);
137 toolBoxForActionsUpper =
new QHBoxLayout();
138 toolBoxForActionsUpper->setObjectName(QStringLiteral(
"toolBoxForActionsUpper"));
139 toolBoxForActionsUpper->setSizeConstraint(QLayout::SetDefaultConstraint);
140 toolBoxForActionsUpper->setContentsMargins(-1, 0, -1, -1);
142 verticalLayout->addLayout(toolBoxForActionsUpper);
144 toolBoxForActionsLower =
new QHBoxLayout();
145 toolBoxForActionsLower->setObjectName(QStringLiteral(
"toolBoxForActionsLower"));
146 toolBoxForActionsLower->setContentsMargins(-1, 0, -1, -1);
148 verticalLayout->addLayout(toolBoxForActionsLower);
150 adEdit =
new QTextEdit(newCaDialog);
151 adEdit->setObjectName(QStringLiteral(
"adEdit"));
153 verticalLayout->addWidget(adEdit);
155 attachmentLayout =
new QHBoxLayout();
156 attachmentLayout->setObjectName(QStringLiteral(
"attachmentLayout"));
157 attachmentLabel =
new QLabel(newCaDialog);
158 attachmentLabel->setObjectName(QStringLiteral(
"attachmentLabel"));
160 attachmentLayout->addWidget(attachmentLabel);
162 attachmentListLabel =
new QLabel(newCaDialog);
163 attachmentListLabel->setObjectName(QStringLiteral(
"attachmentListLabel"));
164 QSizePolicy sizePolicy2(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
165 sizePolicy2.setHorizontalStretch(0);
166 sizePolicy2.setVerticalStretch(0);
167 sizePolicy2.setHeightForWidth(attachmentListLabel->sizePolicy().hasHeightForWidth());
168 attachmentListLabel->setSizePolicy(sizePolicy2);
170 attachmentLayout->addWidget(attachmentListLabel);
172 addAttachmentBtn =
new QPushButton(newCaDialog);
173 addAttachmentBtn->setObjectName(QStringLiteral(
"addAttachmentBtn"));
175 attachmentLayout->addWidget(addAttachmentBtn);
178 verticalLayout->addLayout(attachmentLayout);
180 bottomButtonsBox =
new QDialogButtonBox(newCaDialog);
181 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
182 bottomButtonsBox->setOrientation(Qt::Horizontal);
183 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
185 verticalLayout->addWidget(bottomButtonsBox);
188 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
192 QObject::connect(bottomButtonsBox, SIGNAL(accepted()), newCaDialog, SLOT(accept()));
193 QObject::connect(bottomButtonsBox, SIGNAL(rejected()), newCaDialog, SLOT(reject()));
195 QMetaObject::connectSlotsByName(newCaDialog);
200 newCaDialog->setWindowTitle(QApplication::translate(
"newCaDialog",
"Post a new classified ad", Q_NULLPTR));
201 aboutLabel->setText(QApplication::translate(
"newCaDialog",
"About", Q_NULLPTR));
202 caRegardingLabel->setText(QApplication::translate(
"newCaDialog",
"of", Q_NULLPTR));
203 caWhereLabel->setText(QApplication::translate(
"newCaDialog",
"in", Q_NULLPTR));
204 subjectLabel->setText(QApplication::translate(
"newCaDialog",
"Subject", Q_NULLPTR));
205 attachmentLabel->setText(QApplication::translate(
"newCaDialog",
"Attachment: ", Q_NULLPTR));
206 attachmentListLabel->setText(QString());
207 addAttachmentBtn->setText(QApplication::translate(
"newCaDialog",
"Add", Q_NULLPTR));
218 #endif // UI_NEWCLASSIFIEDAD_H QHBoxLayout * toolBoxForActionsLower
Definition: ui_newClassifiedAd.h:46
QLabel * caRegardingLabel
Definition: ui_newClassifiedAd.h:38
QDialogButtonBox * bottomButtonsBox
Definition: ui_newClassifiedAd.h:52
Definition: ui_aboutDialog.h:161
QHBoxLayout * subjectLayout
Definition: ui_newClassifiedAd.h:42
QHBoxLayout * toolBoxForActionsUpper
Definition: ui_newClassifiedAd.h:45
QTextEdit * adEdit
Definition: ui_newClassifiedAd.h:47
QLabel * attachmentLabel
Definition: ui_newClassifiedAd.h:49
void setupUi(QDialog *newCaDialog)
Definition: ui_newClassifiedAd.h:54
QComboBox * caAboutComboBox
Definition: ui_newClassifiedAd.h:37
QLabel * caWhereLabel
Definition: ui_newClassifiedAd.h:40
QLabel * attachmentListLabel
Definition: ui_newClassifiedAd.h:50
Definition: ui_newClassifiedAd.h:30
QGridLayout * gridLayout
Definition: ui_newClassifiedAd.h:33
Definition: ui_newClassifiedAd.h:213
QLabel * subjectLabel
Definition: ui_newClassifiedAd.h:43
QHBoxLayout * groupSelectionLayout
Definition: ui_newClassifiedAd.h:36
QLabel * aboutLabel
Definition: ui_newClassifiedAd.h:35
QPushButton * addAttachmentBtn
Definition: ui_newClassifiedAd.h:51
QVBoxLayout * verticalLayout
Definition: ui_newClassifiedAd.h:34
QLineEdit * subjectEdit
Definition: ui_newClassifiedAd.h:44
void retranslateUi(QDialog *newCaDialog)
Definition: ui_newClassifiedAd.h:198
QComboBox * caWhereComboBox
Definition: ui_newClassifiedAd.h:41
QHBoxLayout * attachmentLayout
Definition: ui_newClassifiedAd.h:48
QComboBox * caRegardingCombobox
Definition: ui_newClassifiedAd.h:39