diff --git a/retroshare-gui/src/gui/settings/ChatPage.cpp b/retroshare-gui/src/gui/settings/ChatPage.cpp index 88ac01760..3b1e650b0 100644 --- a/retroshare-gui/src/gui/settings/ChatPage.cpp +++ b/retroshare-gui/src/gui/settings/ChatPage.cpp @@ -22,6 +22,7 @@ #include #include +#include #include "ChatPage.h" #include "gui/chat/ChatStyle.h" #include "gui/notifyqt.h" @@ -156,6 +157,17 @@ ChatPage::save(QString &/*errmsg*/) } } + uint chatflags = 0; + + if (ui.chat_NewWindow->isChecked()) + chatflags |= RS_CHAT_OPEN; + if (ui.chat_Focus->isChecked()) + chatflags |= RS_CHAT_FOCUS; + if (ui.chat_tabbedWindow->isChecked()) + chatflags |= RS_CHAT_TABBED_WINDOW; + + Settings->setChatFlags(chatflags); + return true; } @@ -197,6 +209,12 @@ ChatPage::load() std::string nick ; rsMsgs->getDefaultNickNameForChatLobby(nick) ; ui.chatLobbyNick_LE->setText(QString::fromUtf8(nick.c_str())) ; + + uint chatflags = Settings->getChatFlags(); + + ui.chat_NewWindow->setChecked(chatflags & RS_CHAT_OPEN); + ui.chat_Focus->setChecked(chatflags & RS_CHAT_FOCUS); + ui.chat_tabbedWindow->setChecked(chatflags & RS_CHAT_TABBED_WINDOW); } void ChatPage::on_pushButtonChangeChatFont_clicked() diff --git a/retroshare-gui/src/gui/settings/ChatPage.ui b/retroshare-gui/src/gui/settings/ChatPage.ui index d4ce4b03a..04089e517 100644 --- a/retroshare-gui/src/gui/settings/ChatPage.ui +++ b/retroshare-gui/src/gui/settings/ChatPage.ui @@ -20,20 +20,20 @@ General - + - - - - 0 - 0 - - - - Chat Settings - - - + + + + + + 0 + 0 + + + + Chat Settings + @@ -139,6 +139,15 @@ + + + + + + + Chat Lobby + + @@ -147,7 +156,7 @@ - + @@ -176,87 +185,121 @@ + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Private Chat + + - - - Qt::Vertical + + + Open Window for new chat - - - 20 - 40 - + + + + + + Grab Focus when chat arrives - + + + + + + Use a single tabbed window + + - - - - - Chat Font + + + + + + Chat Font + + + + 2 - - - 2 - - - 0 - - - 0 - - - 0 - - - 2 - - - - - Change Chat Font - - - - - - - - 0 - 0 - - - - Chat Font: - - - - - - - Font Preview - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - + + 2 + + + 0 + + + 0 + + + 0 + + + + + Change Chat Font + + + + + + + + 0 + 0 + + + + Chat Font: + + + + + + + Font Preview + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + diff --git a/retroshare-gui/src/gui/settings/NotifyPage.cpp b/retroshare-gui/src/gui/settings/NotifyPage.cpp index a2baf8a2e..cab8564f3 100755 --- a/retroshare-gui/src/gui/settings/NotifyPage.cpp +++ b/retroshare-gui/src/gui/settings/NotifyPage.cpp @@ -126,16 +126,8 @@ NotifyPage::save(QString &/*errmsg*/) { /* extract from rsNotify the flags */ - uint chatflags = 0; uint messageflags = 0; - if (ui.chat_NewWindow->isChecked()) - chatflags |= RS_CHAT_OPEN; - if (ui.chat_Focus->isChecked()) - chatflags |= RS_CHAT_FOCUS; - if (ui.chat_tabbedWindow->isChecked()) - chatflags |= RS_CHAT_TABBED_WINDOW; - if (ui.message_ConnectAttempt->isChecked()) messageflags |= RS_MESSAGE_CONNECT_ATTEMPT; @@ -147,7 +139,6 @@ NotifyPage::save(QString &/*errmsg*/) Settings->setNotifyFlags(getNotifyFlags()); Settings->setNewsFeedFlags(getNewsFlags()); - Settings->setChatFlags(chatflags); Settings->setMessageFlags(messageflags); Settings->setDisplayTrayChatLobby(ui.systray_ChatLobby->isChecked()); @@ -174,7 +165,6 @@ void NotifyPage::load() /* extract from rsNotify the flags */ uint notifyflags = Settings->getNotifyFlags(); uint newsflags = Settings->getNewsFeedFlags(); - uint chatflags = Settings->getChatFlags(); uint messageflags = Settings->getMessageFlags(); ui.popup_Connect->setChecked(notifyflags & RS_POPUP_CONNECT); @@ -194,10 +184,6 @@ void NotifyPage::load() ui.notify_Chat->setChecked(newsflags & RS_FEED_TYPE_CHAT); ui.notify_Security->setChecked(newsflags & RS_FEED_TYPE_SECURITY); - ui.chat_NewWindow->setChecked(chatflags & RS_CHAT_OPEN); - ui.chat_Focus->setChecked(chatflags & RS_CHAT_FOCUS); - ui.chat_tabbedWindow->setChecked(chatflags & RS_CHAT_TABBED_WINDOW); - ui.message_ConnectAttempt->setChecked(messageflags & RS_MESSAGE_CONNECT_ATTEMPT); ui.systray_GroupChat->setChecked(Settings->getDisplayTrayGroupChat()); diff --git a/retroshare-gui/src/gui/settings/NotifyPage.ui b/retroshare-gui/src/gui/settings/NotifyPage.ui index 8a143f67b..5f4631529 100755 --- a/retroshare-gui/src/gui/settings/NotifyPage.ui +++ b/retroshare-gui/src/gui/settings/NotifyPage.ui @@ -144,22 +144,22 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -363,34 +363,17 @@ - - - Private Chat + + + Qt::Vertical - - - - - Open Window for new chat - - - - - - - Grab Focus when chat arrives - - - - - - - Use a single tabbed window - - - - - + + + 20 + 40 + + + diff --git a/retroshare-gui/src/lang/retroshare_de.qm b/retroshare-gui/src/lang/retroshare_de.qm index b18b0816e..8ac5dac0d 100644 Binary files a/retroshare-gui/src/lang/retroshare_de.qm and b/retroshare-gui/src/lang/retroshare_de.qm differ diff --git a/retroshare-gui/src/lang/retroshare_de.ts b/retroshare-gui/src/lang/retroshare_de.ts index ec58d697e..7aa7d2051 100644 --- a/retroshare-gui/src/lang/retroshare_de.ts +++ b/retroshare-gui/src/lang/retroshare_de.ts @@ -1210,6 +1210,22 @@ Bitte wähle einen zum Chatten aus. Enable Emoticons Private Chat Emoticons für privaten Chat + + Open Window for new chat + Fenster für neuen Chat öffnen + + + Grab Focus when chat arrives + Fokus auf neues Chatfenster legen + + + Use a single tabbed window + Ein Fenster mit Tabs verwenden + + + Chat Lobby + Chatlobby + ChatStyle @@ -4135,6 +4151,10 @@ p, li { white-space: pre-wrap; } You can't reply an Anonymous Author Du kannst einem anonymen Autor nicht antworten + + Search this forum... + + ForumsFillThread @@ -7806,15 +7826,15 @@ Rechtsklick und als Freund hinzufügen um zu verbinden. Open Window for new chat - Fenster für neuen Chat öffnen + Fenster für neuen Chat öffnen Grab Focus when chat arrives - Fokus auf neues Chatfenster legen + Fokus auf neues Chatfenster legen Use a single tabbed window - Ein Fenster mit Tabs verwenden + Ein Fenster mit Tabs verwenden Group chat diff --git a/retroshare-gui/src/lang/retroshare_en.ts b/retroshare-gui/src/lang/retroshare_en.ts index af2b3e01a..69a7c2880 100644 --- a/retroshare-gui/src/lang/retroshare_en.ts +++ b/retroshare-gui/src/lang/retroshare_en.ts @@ -1178,6 +1178,22 @@ Please choose one of it to chat with. Enable Emoticons Private Chat + + Open Window for new chat + + + + Grab Focus when chat arrives + + + + Use a single tabbed window + + + + Chat Lobby + + ChatStyle @@ -4071,6 +4087,10 @@ p, li { white-space: pre-wrap; } You can't reply an Anonymous Author + + Search this forum... + + ForumsFillThread @@ -7635,18 +7655,6 @@ Right-click and select 'make friend' to be able to connect. Private Chat - - Open Window for new chat - - - - Grab Focus when chat arrives - - - - Use a single tabbed window - - Group chat