Actualización de CMakeLists.txt y composeview (añadido getTableView, manejo de carpeta seleccionada, sync, delete, flag)

This commit is contained in:
2026-07-05 23:20:35 +02:00
parent 933cce39b9
commit e81bb0d5fe
3 changed files with 44 additions and 19 deletions
+30 -17
View File
@@ -4,6 +4,12 @@
#include <QInputDialog>
#include <QMessageBox>
#include <QDebug>
#include <QDialog>
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QLabel>
#include "tags_line_edit.hpp"
#include <QRegularExpression>
#include <QTimer>
#include <QTextList>
#include <QTextTable>
@@ -282,25 +288,32 @@ void ComposeView::onSignatureClicked() {
// handle any ComposeView-specific logic here if needed
}
void ComposeView::onSignatureEditRequested() {
// This slot will be connected to the "Edit Signature..." action in the menu
// For now, we'll just show a simple input dialog
QString currentSignature = "";
// In a real implementation, we would get the current signature for the selected account
// For now, we'll use an empty string
bool ok;
QString newSignature = QInputDialog::getMultiLineText(this, "Edit Signature",
"Enter your signature:",
currentSignature, &ok);
if (ok && !newSignature.isEmpty()) {
// In a real implementation, we would save this signature for the selected account
// For now, we'll just insert it at the cursor position
QTextCursor cursor = m_bodyEditor->textCursor();
cursor.insertHtml(newSignature);
void ComposeView::onSignatureEditRequested()
{
QDialog dialog(this);
dialog.setWindowTitle(tr("Edit Signature"));
dialog.setMinimumSize(600, 400);
QVBoxLayout *layout = new QVBoxLayout(&dialog);
RichTextEditor *editor = new RichTextEditor(&dialog);
editor->setupToolbar(layout);
layout->addWidget(editor);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
layout->addWidget(buttonBox);
connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
if (dialog.exec() == QDialog::Accepted) {
QString signatureHtml = editor->toHtml();
if (!signatureHtml.isEmpty()) {
QTextCursor cursor = m_bodyEditor->textCursor();
cursor.insertHtml(signatureHtml);
}
}
}
void ComposeView::setAccountService(AccountService *service)
{
m_accountService = service;
+1
View File
@@ -17,6 +17,7 @@
#include <QComboBox>
#include <QListWidget>
#include "models/EmailCompositionModel.h"
#include "tags_line_edit.hpp"
#include "services/accountservice.h"
class AccountService;