9 #ifndef UI_NEWTEXTDOCUMENT_H 10 #define UI_NEWTEXTDOCUMENT_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QTextEdit> 25 #include <QtWidgets/QVBoxLayout> 46 void setupUi(QDialog *newTextDocumentDialog)
48 if (newTextDocumentDialog->objectName().isEmpty())
49 newTextDocumentDialog->setObjectName(QStringLiteral(
"newTextDocumentDialog"));
50 newTextDocumentDialog->resize(823, 705);
51 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
52 sizePolicy.setHorizontalStretch(0);
53 sizePolicy.setVerticalStretch(0);
54 sizePolicy.setHeightForWidth(newTextDocumentDialog->sizePolicy().hasHeightForWidth());
55 newTextDocumentDialog->setSizePolicy(sizePolicy);
56 newTextDocumentDialog->setMinimumSize(QSize(0, 0));
57 newTextDocumentDialog->setSizeGripEnabled(
true);
58 gridLayout =
new QGridLayout(newTextDocumentDialog);
59 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
60 verticalLayout =
new QVBoxLayout();
61 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
62 subjectLayout =
new QHBoxLayout();
63 subjectLayout->setObjectName(QStringLiteral(
"subjectLayout"));
64 documentTitleLabel =
new QLabel(newTextDocumentDialog);
65 documentTitleLabel->setObjectName(QStringLiteral(
"documentTitleLabel"));
67 subjectLayout->addWidget(documentTitleLabel);
69 titleEdit =
new QLineEdit(newTextDocumentDialog);
70 titleEdit->setObjectName(QStringLiteral(
"titleEdit"));
72 subjectLayout->addWidget(titleEdit);
75 verticalLayout->addLayout(subjectLayout);
77 toolBoxLayoutUpper =
new QHBoxLayout();
78 toolBoxLayoutUpper->setObjectName(QStringLiteral(
"toolBoxLayoutUpper"));
79 toolBoxLayoutUpper->setContentsMargins(-1, 0, -1, -1);
81 verticalLayout->addLayout(toolBoxLayoutUpper);
83 toolBoxLayoutLower =
new QHBoxLayout();
84 toolBoxLayoutLower->setObjectName(QStringLiteral(
"toolBoxLayoutLower"));
86 verticalLayout->addLayout(toolBoxLayoutLower);
88 documentEdit =
new QTextEdit(newTextDocumentDialog);
89 documentEdit->setObjectName(QStringLiteral(
"documentEdit"));
91 verticalLayout->addWidget(documentEdit);
93 attachmentLayout =
new QHBoxLayout();
94 attachmentLayout->setObjectName(QStringLiteral(
"attachmentLayout"));
95 attachmentLayout->setContentsMargins(-1, 0, -1, -1);
96 attachmentsLabel =
new QLabel(newTextDocumentDialog);
97 attachmentsLabel->setObjectName(QStringLiteral(
"attachmentsLabel"));
98 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
99 sizePolicy1.setHorizontalStretch(0);
100 sizePolicy1.setVerticalStretch(0);
101 sizePolicy1.setHeightForWidth(attachmentsLabel->sizePolicy().hasHeightForWidth());
102 attachmentsLabel->setSizePolicy(sizePolicy1);
104 attachmentLayout->addWidget(attachmentsLabel);
106 attahcmentsListLabel =
new QLabel(newTextDocumentDialog);
107 attahcmentsListLabel->setObjectName(QStringLiteral(
"attahcmentsListLabel"));
108 QSizePolicy sizePolicy2(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
109 sizePolicy2.setHorizontalStretch(0);
110 sizePolicy2.setVerticalStretch(0);
111 sizePolicy2.setHeightForWidth(attahcmentsListLabel->sizePolicy().hasHeightForWidth());
112 attahcmentsListLabel->setSizePolicy(sizePolicy2);
114 attachmentLayout->addWidget(attahcmentsListLabel);
116 attachButton =
new QPushButton(newTextDocumentDialog);
117 attachButton->setObjectName(QStringLiteral(
"attachButton"));
119 attachmentLayout->addWidget(attachButton);
122 verticalLayout->addLayout(attachmentLayout);
124 bottomButtonsBox =
new QDialogButtonBox(newTextDocumentDialog);
125 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
126 QSizePolicy sizePolicy3(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
127 sizePolicy3.setHorizontalStretch(0);
128 sizePolicy3.setVerticalStretch(0);
129 sizePolicy3.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
130 bottomButtonsBox->setSizePolicy(sizePolicy3);
131 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
133 verticalLayout->addWidget(bottomButtonsBox);
136 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
140 QObject::connect(bottomButtonsBox, SIGNAL(rejected()), newTextDocumentDialog, SLOT(reject()));
142 QMetaObject::connectSlotsByName(newTextDocumentDialog);
147 newTextDocumentDialog->setWindowTitle(QApplication::translate(
"newTextDocumentDialog",
"Edit and publish a new text document", Q_NULLPTR));
148 documentTitleLabel->setText(QApplication::translate(
"newTextDocumentDialog",
"Document title", Q_NULLPTR));
149 attachmentsLabel->setText(QApplication::translate(
"newTextDocumentDialog",
"Attachments:", Q_NULLPTR));
150 attahcmentsListLabel->setText(QString());
151 attachButton->setText(QApplication::translate(
"newTextDocumentDialog",
"Attach", Q_NULLPTR));
162 #endif // UI_NEWTEXTDOCUMENT_H QLineEdit * titleEdit
Definition: ui_newTextDocument.h:36
QLabel * attachmentsLabel
Definition: ui_newTextDocument.h:41
QDialogButtonBox * bottomButtonsBox
Definition: ui_newTextDocument.h:44
void retranslateUi(QDialog *newTextDocumentDialog)
Definition: ui_newTextDocument.h:145
Definition: ui_aboutDialog.h:161
Definition: ui_newTextDocument.h:29
QHBoxLayout * attachmentLayout
Definition: ui_newTextDocument.h:40
QPushButton * attachButton
Definition: ui_newTextDocument.h:43
QTextEdit * documentEdit
Definition: ui_newTextDocument.h:39
QGridLayout * gridLayout
Definition: ui_newTextDocument.h:32
Definition: ui_newTextDocument.h:157
QHBoxLayout * toolBoxLayoutLower
Definition: ui_newTextDocument.h:38
QLabel * documentTitleLabel
Definition: ui_newTextDocument.h:35
QVBoxLayout * verticalLayout
Definition: ui_newTextDocument.h:33
void setupUi(QDialog *newTextDocumentDialog)
Definition: ui_newTextDocument.h:46
QHBoxLayout * toolBoxLayoutUpper
Definition: ui_newTextDocument.h:37
QHBoxLayout * subjectLayout
Definition: ui_newTextDocument.h:34
QLabel * attahcmentsListLabel
Definition: ui_newTextDocument.h:42