16 #include <Wt/WContainerWidget>
18 #include <Wt/WLineEdit>
19 #include <Wt/WPushButton>
22 #include <Wt/WTableCell>
23 #include <Wt/WStringUtil>
80 std::vector<Attachment> toadd =
attachments_[i]->attachments();
82 attachments.insert(attachments.end(), toadd.begin(), toadd.end());
104 horiz->setPadding(5);
165 subject_->
resize(
WLength(99, WLength::Percentage), WLength::Auto);
187 attachOtherFile_->hide();
201 horiz->setPadding(5);
228 addbcc_->
item()->clicked().connect(bccEdit_, &WWidget::show);
231 addbcc_->
item()->clicked().connect(bccEdit_, &WFormWidget::setFocus);
243 attachFile_->
item()->clicked().connect(attachOtherFile_, &WWidget::show);
269 std::vector<AttachmentEdit *>::iterator i
314 for (
unsigned i = 0; i <
attachments_.size() - 1; ++i) {
325 setStatus(tr(
"msg.uploading"),
"status");
354 bool attachmentsFailed =
false;
357 attachmentsFailed =
true;
361 if (attachmentsFailed) {
362 setStatus(tr(
"msg.attachment.failed"),
"error");
369 strftime(buffer, 100,
"%H:%M", &td);
371 char buffer[] =
"server";
374 statusMsg_->setText(std::string(
"Draft saved at ") + buffer);