Added setting for the count of messages to load from the history for group and private chat

Restore the last active page in MainWindow on startup
Removed not needed methods RshareSettings::getChatAvatar and RshareSettings::setChatAvatar


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3747 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-04 11:14:47 +00:00
parent 5a6456ebf1
commit ad6b10272b
11 changed files with 161 additions and 43 deletions

View file

@ -68,19 +68,20 @@ class MainWindow : public RWindow
public:
/** Main dialog pages. */
enum Page {
Network = 0, /** Network page. */
Friends, /** Peers page. */
Search, /** Search page. */
Transfers, /** Transfers page. */
SharedDirectories, /** Shared Directories page. */
Messages, /** Messages page. */
Channels, /** Channels page. */
Forums, /** Forums page. */
/* Fixed numbers for load and save the last page */
Network = 0, /** Network page. */
Friends = 1, /** Peers page. */
Search = 2, /** Search page. */
Transfers = 3, /** Transfers page. */
SharedDirectories = 4, /** Shared Directories page. */
Messages = 5, /** Messages page. */
Channels = 6, /** Channels page. */
Forums = 7, /** Forums page. */
#ifdef BLOGS
Blogs, /** Blogs page. */
Blogs = 8, /** Blogs page. */
#endif
#ifndef RS_RELEASE_VERSION
Links, /** Links page. */
Links = 9, /** Links page. */
#endif
};
@ -94,7 +95,8 @@ public:
/** Shows the MainWindow dialog with focus set to the given page. */
static void showWindow(Page page);
/** Set focus to the given page. */
static void activatePage (Page page);
static bool activatePage (Page page);
static Page getActivatePage ();
/** get page */
static MainPage *getPage (Page page);