9 #ifndef UI_NEWPRIVMSG_H 10 #define UI_NEWPRIVMSG_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> 51 if (newPrivMsgDialog->objectName().isEmpty())
52 newPrivMsgDialog->setObjectName(QStringLiteral(
"newPrivMsgDialog"));
53 newPrivMsgDialog->resize(800, 600);
54 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
55 sizePolicy.setHorizontalStretch(0);
56 sizePolicy.setVerticalStretch(0);
57 sizePolicy.setHeightForWidth(newPrivMsgDialog->sizePolicy().hasHeightForWidth());
58 newPrivMsgDialog->setSizePolicy(sizePolicy);
59 newPrivMsgDialog->setMinimumSize(QSize(0, 0));
60 newPrivMsgDialog->setSizeGripEnabled(
true);
61 gridLayout =
new QGridLayout(newPrivMsgDialog);
62 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
63 verticalLayout =
new QVBoxLayout();
64 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
65 subjectLayout =
new QHBoxLayout();
66 subjectLayout->setObjectName(QStringLiteral(
"subjectLayout"));
67 subjectLabel =
new QLabel(newPrivMsgDialog);
68 subjectLabel->setObjectName(QStringLiteral(
"subjectLabel"));
70 subjectLayout->addWidget(subjectLabel);
72 subjectEdit =
new QLineEdit(newPrivMsgDialog);
73 subjectEdit->setObjectName(QStringLiteral(
"subjectEdit"));
75 subjectLayout->addWidget(subjectEdit);
78 verticalLayout->addLayout(subjectLayout);
80 recipientLayout =
new QHBoxLayout();
81 recipientLayout->setObjectName(QStringLiteral(
"recipientLayout"));
82 recipientLabel =
new QLabel(newPrivMsgDialog);
83 recipientLabel->setObjectName(QStringLiteral(
"recipientLabel"));
85 recipientLayout->addWidget(recipientLabel);
87 recipientEdit =
new QLineEdit(newPrivMsgDialog);
88 recipientEdit->setObjectName(QStringLiteral(
"recipientEdit"));
90 recipientLayout->addWidget(recipientEdit);
93 verticalLayout->addLayout(recipientLayout);
95 toolBoxLayoutUpper =
new QHBoxLayout();
96 toolBoxLayoutUpper->setObjectName(QStringLiteral(
"toolBoxLayoutUpper"));
97 toolBoxLayoutUpper->setContentsMargins(-1, 0, -1, -1);
99 verticalLayout->addLayout(toolBoxLayoutUpper);
101 toolBoxLayoutLower =
new QHBoxLayout();
102 toolBoxLayoutLower->setObjectName(QStringLiteral(
"toolBoxLayoutLower"));
104 verticalLayout->addLayout(toolBoxLayoutLower);
106 messageEdit =
new QTextEdit(newPrivMsgDialog);
107 messageEdit->setObjectName(QStringLiteral(
"messageEdit"));
109 verticalLayout->addWidget(messageEdit);
111 attachmentLayout =
new QHBoxLayout();
112 attachmentLayout->setObjectName(QStringLiteral(
"attachmentLayout"));
113 attachmentLayout->setContentsMargins(-1, 0, -1, -1);
114 attachmentsLabel =
new QLabel(newPrivMsgDialog);
115 attachmentsLabel->setObjectName(QStringLiteral(
"attachmentsLabel"));
117 attachmentLayout->addWidget(attachmentsLabel);
119 attachmentsListLabel =
new QLabel(newPrivMsgDialog);
120 attachmentsListLabel->setObjectName(QStringLiteral(
"attachmentsListLabel"));
121 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
122 sizePolicy1.setHorizontalStretch(0);
123 sizePolicy1.setVerticalStretch(0);
124 sizePolicy1.setHeightForWidth(attachmentsListLabel->sizePolicy().hasHeightForWidth());
125 attachmentsListLabel->setSizePolicy(sizePolicy1);
127 attachmentLayout->addWidget(attachmentsListLabel);
129 attachButton =
new QPushButton(newPrivMsgDialog);
130 attachButton->setObjectName(QStringLiteral(
"attachButton"));
132 attachmentLayout->addWidget(attachButton);
135 verticalLayout->addLayout(attachmentLayout);
137 bottomButtonsBox =
new QDialogButtonBox(newPrivMsgDialog);
138 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
139 QSizePolicy sizePolicy2(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
140 sizePolicy2.setHorizontalStretch(0);
141 sizePolicy2.setVerticalStretch(0);
142 sizePolicy2.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
143 bottomButtonsBox->setSizePolicy(sizePolicy2);
144 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
146 verticalLayout->addWidget(bottomButtonsBox);
149 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
154 QMetaObject::connectSlotsByName(newPrivMsgDialog);
159 newPrivMsgDialog->setWindowTitle(QApplication::translate(
"newPrivMsgDialog",
"Send a private message", Q_NULLPTR));
160 subjectLabel->setText(QApplication::translate(
"newPrivMsgDialog",
"Subject", Q_NULLPTR));
161 recipientLabel->setText(QApplication::translate(
"newPrivMsgDialog",
"Recipient", Q_NULLPTR));
162 attachmentsLabel->setText(QApplication::translate(
"newPrivMsgDialog",
"Attachments: ", Q_NULLPTR));
163 attachmentsListLabel->setText(QString());
164 attachButton->setText(QApplication::translate(
"newPrivMsgDialog",
"Attach", Q_NULLPTR));
175 #endif // UI_NEWPRIVMSG_H QGridLayout * gridLayout
Definition: ui_newPrivMsg.h:32
QLineEdit * recipientEdit
Definition: ui_newPrivMsg.h:39
Definition: ui_newPrivMsg.h:170
QDialogButtonBox * bottomButtonsBox
Definition: ui_newPrivMsg.h:47
QHBoxLayout * toolBoxLayoutLower
Definition: ui_newPrivMsg.h:41
Definition: ui_aboutDialog.h:161
QHBoxLayout * toolBoxLayoutUpper
Definition: ui_newPrivMsg.h:40
Definition: ui_newPrivMsg.h:29
void retranslateUi(QDialog *newPrivMsgDialog)
Definition: ui_newPrivMsg.h:157
QVBoxLayout * verticalLayout
Definition: ui_newPrivMsg.h:33
QLabel * subjectLabel
Definition: ui_newPrivMsg.h:35
QTextEdit * messageEdit
Definition: ui_newPrivMsg.h:42
QLabel * attachmentsListLabel
Definition: ui_newPrivMsg.h:45
QHBoxLayout * subjectLayout
Definition: ui_newPrivMsg.h:34
QLabel * attachmentsLabel
Definition: ui_newPrivMsg.h:44
QHBoxLayout * recipientLayout
Definition: ui_newPrivMsg.h:37
QPushButton * attachButton
Definition: ui_newPrivMsg.h:46
QLineEdit * subjectEdit
Definition: ui_newPrivMsg.h:36
QHBoxLayout * attachmentLayout
Definition: ui_newPrivMsg.h:43
void setupUi(QDialog *newPrivMsgDialog)
Definition: ui_newPrivMsg.h:49
QLabel * recipientLabel
Definition: ui_newPrivMsg.h:38