Add Headermemo, work in Progress

This commit is contained in:
DenioD
2020-04-28 20:32:31 +02:00
parent e681d3000d
commit 555ac40ec2
5 changed files with 91 additions and 71 deletions

View File

@@ -76,6 +76,7 @@ public:
Logger* logger;
void doClose();
QString createHeaderMemo(QString cid, QString zaddr, int version, int headerNumnber);
public slots:
void slot_change_theme(const QString& themeName);
@@ -153,4 +154,21 @@ private:
QMovie* loadingMovie;
};
class ChatMemoEdit : public QPlainTextEdit
{
public:
ChatMemoEdit(QWidget* parent);
void setMaxLen(int len);
void setLenDisplayLabel(QLabel* label_40);
void setSendChatButton(QPushButton* button);
void includeReplyTo(QString replyToAddress);
void updateDisplay();
private:
int maxlen = 512;
QLabel* lenDisplayLabel = nullptr;
QPushButton* sendChatButton = nullptr;
};
#endif // MAINWINDOW_H