tag feature in MessagesDialog

its disabled until the msgId is static

uncomment the define STATIC_MSGID in MessagesDialog.h for testing 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3010 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-05-27 19:48:52 +00:00
parent 3ff6fce00f
commit 5b4985e3d3
11 changed files with 822 additions and 167 deletions

View file

@ -33,8 +33,13 @@
#include "mainpage.h"
#include "ui_MessagesDialog.h"
#include "settings/NewTag.h"
class RSettings;
// Thunder: need a static msgId
//#define STATIC_MSGID
class MessagesDialog : public MainPage
{
Q_OBJECT
@ -45,6 +50,11 @@ public:
/** Default Destructor */
~MessagesDialog();
#ifdef STATIC_MSGID
void getTagItems(std::map<int, TagItem> &Items);
void setTagItems(std::map<int, TagItem> &Items);
#endif
// replaced by shortcut
// virtual void keyPressEvent(QKeyEvent *) ;
void updateMessageSummaryList();
@ -78,9 +88,11 @@ private slots:
bool fileSaveAs();
void removemessage();
#ifdef STATIC_MSGID
void markAsRead();
void markAsUnread();
#endif
void anchorClicked (const QUrl &);
@ -100,6 +112,10 @@ private slots:
void filterColumnChanged();
void clearFilter();
#ifdef STATIC_MSGID
void tagTriggered(QAction *pAction);
void tagAboutToShow();
#endif
private:
class QStandardItemModel *MessagesModel;
@ -112,7 +128,7 @@ private:
void setCurrentFileName(const QString &fileName);
int getSelectedMsgCount (QList<int> *pRowsRead, QList<int> *pRowsUnread);
int getSelectedMsgCount (QList<int> *pRows, QList<int> *pRowsRead, QList<int> *pRowsUnread);
bool isMessageRead(int nRow);
/* internal handle splitter */
@ -120,6 +136,10 @@ private:
void processSettings(bool bLoad);
void setToolbarButtonStyle(Qt::ToolButtonStyle style);
#ifdef STATIC_MSGID
void createTagMenu();
#endif
bool m_bProcessSettings;
std::string mCurrCertId;