mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-18 04:09:02 -04:00
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:
parent
50e243adf6
commit
7661f4486d
16 changed files with 2740 additions and 1171 deletions
retroshare-gui/src/gui/settings
|
@ -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 ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue