void RshareSettings::setGroupFrameSettings(GroupFrameSettings::Type type, const GroupFrameSettings &groupFrameSettings) { QString group = groupFrameSettingsTypeToString(type); if (group.isEmpty()) { return; } setValueToGroup(group, "OpenAllInNewTab", groupFrameSettings.mOpenAllInNewTab); setValueToGroup(group, "HideTabBarWithOneTab", groupFrameSettings.mHideTabBarWithOneTab); }
void RshareSettings::setLastDir(enumLastDir type, const QString &lastDir) { QString key = getKeyForLastDir(type); if (key.isEmpty()) { return; } setValueToGroup("LastDir", key, lastDir); }
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); }
void RshareSettings::setChatScreenFont(const QString &font) { setValueToGroup("Chat", "ChatScreenFont", font); }
void RshareSettings::setWebinterfaceAllowAllIps(bool allow_all) { setValueToGroup("Webinterface", "allowAllIps", allow_all); }
void RshareSettings::setForumOpenAllInNewTab(bool value) { setValueToGroup("ForumDialog", "OpenAllInNewTab", value); }
void RshareSettings::setForumMsgSetToReadOnActivate(bool value) { setValueToGroup("ForumDialog", "SetMsgToReadOnActivate", value); }
void RshareSettings::setMsgLoadEmbeddedImages(bool value) { setValueToGroup("MessageDialog", "LoadEmbeddedImages", value); }
void RshareSettings::setLastPageInMainWindow (int value) { setValueToGroup("MainWindow", "LastPage", value); }
void RshareSettings::setLobbyChatHistoryCount(int value) { setValueToGroup("Chat", "LobbyChatHistoryCount", value); }
void RshareSettings::setChatSearchSearchWithoutLimit(bool bValue) { setValueToGroup("Chat", "SearchSearchWithoutLimit", bValue); }
void RshareSettings::setChatSearchMoveToCursor(bool bValue) { setValueToGroup("Chat", "SearchMoveToCursor", bValue); }
void RshareSettings::setChatSearchWholeWords(bool bValue) { setValueToGroup("Chat", "SearchWholeWords", bValue); }
void RshareSettings::setChatSearchCaseSensitively(bool bValue) { setValueToGroup("Chat", "SearchCaseSensitively", bValue); }
void RshareSettings::setChatSearchCharToStartSearch(int iValue) { setValueToGroup("Chat", "SearchCharToStartSearch", iValue); }
void RshareSettings::setChatSearchShowBarByDefault(bool bValue) { setValueToGroup("Chat", "SearchShowBarByDefault", bValue); }
void RshareSettings::setPublicChatStyle(const QString &stylePath, const QString &styleVariant) { setValueToGroup("Chat", "StylePublic", stylePath); setValueToGroup("Chat", "StylePublicVariant", styleVariant); }
void RshareSettings::setHistoryChatStyle(const QString &stylePath, const QString &styleVariant) { setValueToGroup("Chat", "StyleHistory", stylePath); setValueToGroup("Chat", "StylePrivateVariant", styleVariant); }
void RshareSettings::setChatSearchMaxSearchLimitColor(uint uiValue) { setValueToGroup("Chat", "SearchMaxSearchLimitColor", uiValue); }
void RshareSettings::setPrivateChatHistoryCount(int value) { setValueToGroup("Chat", "PrivateChatHistoryCount", value); }
void RshareSettings::setChatSearchFoundColor(QRgb rgbValue) { setValueToGroup("Chat", "SearchMaxSearchFoundColor", QString::number(rgbValue)); }
void RshareSettings::setStatusBarFlags(uint flags) { setValueToGroup("MainWindow", "StatusBarFlags", flags); }
void RshareSettings::setMsgSetToReadOnActivate (bool value) { setValueToGroup("Message", "SetMsgToReadOnActivate", value); }
void RshareSettings::setChannelLoadThread(bool value) { setValueToGroup("Channel", "LoadThread", value); }
void RshareSettings::setWebinterfaceEnabled(bool enabled) { setValueToGroup("Webinterface", "enabled", enabled); }
void RshareSettings::setForumExpandNewMessages(bool value) { setValueToGroup("ForumDialog", "ExpandNewMessages", value); }
void RshareSettings::setChatSendMessageWithCtrlReturn(bool bValue) { setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue); }
void RshareSettings::setForumLoadEmbeddedImages(bool value) { setValueToGroup("ForumDialog", "LoadEmbeddedImages", value); }
void RshareSettings::setWebinterfacePort(uint16_t port) { setValueToGroup("Webinterface", "port", port); }