Optimized the functions for the forum messages.

- used "const std::string&" for the parameters
- used "std::map" for the read status
- removed useless variables
Added new define DEBUG_FORUMS in ForumsDialog.cpp.
Added function to generate mass data for the forum messages.
Fixed german language for the FriendsDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4236 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-06-06 21:44:16 +00:00
parent 9fb2ddfec0
commit 0dd77f6f27
8 changed files with 291 additions and 254 deletions

View file

@ -91,6 +91,8 @@ private slots:
void filterRegExpChanged();
void clearFilter();
void generateMassData();
private:
void insertForums();
void insertThreads();
@ -112,7 +114,7 @@ private:
void togglethreadview_internal();
void FilterItems();
bool FilterItem(QTreeWidgetItem *pItem, QString &sPattern, int nFilterColumn);
bool FilterItem(QTreeWidgetItem *pItem, QString &sPattern, int filterColumn);
bool m_bProcessSettings;
@ -123,12 +125,12 @@ private:
std::string mCurrForumId;
std::string mCurrThreadId;
bool m_bIsForumSubscribed;
bool m_bIsForumAdmin;
bool isForumSubscribed;
bool isForumAdmin;
QFont m_ForumNameFont;
int m_LastViewType;
std::string m_LastForumID;
int lastViewType;
std::string lastForumID;
/** Qt Designer generated object */
Ui::ForumsDialog ui;