Styles for public chat, private chat and history.

RetroShare has a standard style for each type, but the user can define their own styles.
The external directories "style/public", "style/private" and "style/history" are scanned for subdirs with user defined style informations.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3453 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-07 15:49:31 +00:00
parent 452faffa4b
commit 6bd6c50502
24 changed files with 1537 additions and 684 deletions

View file

@ -299,6 +299,36 @@ void RshareSettings::setChatSendMessageWithCtrlReturn(bool bValue)
setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue);
}
void RshareSettings::getPublicChatStyle(QString &stylePath)
{
stylePath = valueFromGroup("Chat", "StylePublic", ":/qss/chat/public").toString();
}
void RshareSettings::setPublicChatStyle(QString stylePath)
{
setValueToGroup("Chat", "StylePublic", stylePath);
}
void RshareSettings::getPrivateChatStyle(QString &stylePath)
{
stylePath = valueFromGroup("Chat", "StylePrivate", ":/qss/chat/private").toString();
}
void RshareSettings::setPrivateChatStyle(QString stylePath)
{
setValueToGroup("Chat", "StylePrivate", stylePath);
}
void RshareSettings::getHistoryChatStyle(QString &stylePath)
{
stylePath = valueFromGroup("Chat", "StyleHistory", ":/qss/chat/history").toString();
}
void RshareSettings::setHistoryChatStyle(QString stylePath)
{
setValueToGroup("Chat", "StyleHistory", stylePath);
}
/** Returns true if RetroShare is set to run on system boot. */
bool
RshareSettings::runRetroshareOnBoot()