Redesigned the MessagesDialog to open the message in a new tab or new window for reading.

The MessageComposer is now only for writing a new message or editing a message from the draft box.
Added a new setting to the MessagePage.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-06-04 00:46:02 +00:00
parent 50e243adf6
commit 7661f4486d
16 changed files with 2740 additions and 1171 deletions
retroshare-gui/src/gui/settings

View file

@ -627,6 +627,32 @@ void RshareSettings::setMsgSetToReadOnActivate (bool bValue)
setValueToGroup("MessageDialog", "SetMsgToReadOnActivate", bValue);
}
RshareSettings::enumMsgOpen RshareSettings::getMsgOpen()
{
enumMsgOpen value = (enumMsgOpen) valueFromGroup("MessageDialog", "msgOpen", MSG_OPEN_TAB).toInt();
switch (value) {
case MSG_OPEN_TAB:
case MSG_OPEN_WINDOW:
return value;
}
return MSG_OPEN_TAB;
}
void RshareSettings::setMsgOpen(enumMsgOpen value)
{
switch (value) {
case MSG_OPEN_TAB:
case MSG_OPEN_WINDOW:
break;
default:
value = MSG_OPEN_TAB;
}
setValueToGroup("MessageDialog", "msgOpen", value);
}
/* Forums */
bool RshareSettings::getForumMsgSetToReadOnActivate ()
{