mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 22:52:54 -04:00
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:
parent
452faffa4b
commit
6bd6c50502
24 changed files with 1537 additions and 684 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue