mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 22:30:42 -04:00
improvements MessagesDialog:
- new read/unread state - stored locally - show all recipients in Outbox, Sentbox and Draftbox git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2975 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61e8d588a8
commit
cef2c1218f
10 changed files with 1619 additions and 1379 deletions
|
@ -33,6 +33,8 @@
|
|||
#include "mainpage.h"
|
||||
#include "ui_MessagesDialog.h"
|
||||
|
||||
class RSettings;
|
||||
|
||||
class MessagesDialog : public MainPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -43,7 +45,6 @@ public:
|
|||
/** Default Destructor */
|
||||
~MessagesDialog();
|
||||
|
||||
void insertMsgTxtAndFiles(QModelIndex index = QModelIndex());
|
||||
// replaced by shortcut
|
||||
// virtual void keyPressEvent(QKeyEvent *) ;
|
||||
void updateMessageSummaryList();
|
||||
|
@ -77,6 +78,9 @@ private slots:
|
|||
|
||||
void removemessage();
|
||||
|
||||
void markAsRead();
|
||||
void markAsUnread();
|
||||
|
||||
void anchorClicked (const QUrl &);
|
||||
|
||||
void getcurrentrecommended();
|
||||
|
@ -100,12 +104,15 @@ private:
|
|||
class QStandardItemModel *MessagesModel;
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
|
||||
void insertMsgTxtAndFiles(QModelIndex index = QModelIndex(), bool bSetToRead = true);
|
||||
|
||||
bool getCurrentMsg(std::string &cid, std::string &mid);
|
||||
void setMsgAsRead(const QModelIndex &index);
|
||||
void setMsgAsReadUnread(const QList<int> &Rows, bool bRead);
|
||||
|
||||
void setCurrentFileName(const QString &fileName);
|
||||
|
||||
int getSelectedMsgCount ();
|
||||
int getSelectedMsgCount (QList<int> *pRowsRead, QList<int> *pRowsUnread);
|
||||
bool isMessageRead(int nRow);
|
||||
|
||||
/* internal handle splitter */
|
||||
void togglefileview_internal();
|
||||
|
@ -118,8 +125,8 @@ private:
|
|||
std::string mCurrMsgId;
|
||||
|
||||
QString fileName;
|
||||
|
||||
QFont mFont;
|
||||
RSettings *m_pConfig;
|
||||
|
||||
// timer and index for showing message
|
||||
QTimer *timer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue