mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-03 05:32:53 -04:00
Added new settings on the NotifyPage to enable or disable the systray icons for messages and posts.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3647 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
51cc1d2b3b
commit
928e236103
7 changed files with 857 additions and 780 deletions
retroshare-gui/src/gui/settings
|
@ -42,9 +42,6 @@ NotifyPage::NotifyPage(QWidget * parent, Qt::WFlags flags)
|
|||
setAttribute(Qt::WA_QuitOnClose, false);
|
||||
setWindowTitle(windowTitle() + QLatin1String(" - Notify"));
|
||||
|
||||
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
|
@ -68,6 +65,7 @@ NotifyPage::save(QString &errmsg)
|
|||
/* extract from rsNotify the flags */
|
||||
|
||||
uint notifyflags = 0;
|
||||
uint traynotifyflags = 0;
|
||||
uint newsflags = 0;
|
||||
uint chatflags = 0;
|
||||
|
||||
|
@ -106,7 +104,17 @@ NotifyPage::save(QString &errmsg)
|
|||
if (ui.chat_Focus->isChecked())
|
||||
chatflags |= RS_CHAT_FOCUS;
|
||||
|
||||
if (ui.trayNotify_PrivateChat->isChecked())
|
||||
traynotifyflags |= TRAYNOTIFY_PRIVATECHAT;
|
||||
if (ui.trayNotify_Messages->isChecked())
|
||||
traynotifyflags |= TRAYNOTIFY_MESSAGES;
|
||||
if (ui.trayNotify_Channels->isChecked())
|
||||
traynotifyflags |= TRAYNOTIFY_CHANNELS;
|
||||
if (ui.trayNotify_Forums->isChecked())
|
||||
traynotifyflags |= TRAYNOTIFY_FORUMS;
|
||||
|
||||
Settings->setNotifyFlags(notifyflags);
|
||||
Settings->setTrayNotifyFlags(traynotifyflags);
|
||||
Settings->setNewsFeedFlags(newsflags);
|
||||
Settings->setChatFlags(chatflags);
|
||||
|
||||
|
@ -125,6 +133,7 @@ void NotifyPage::load()
|
|||
{
|
||||
/* extract from rsNotify the flags */
|
||||
uint notifyflags = Settings->getNotifyFlags();
|
||||
uint traynotifyflags = Settings->getTrayNotifyFlags();
|
||||
uint newsflags = Settings->getNewsFeedFlags();
|
||||
uint chatflags = Settings->getChatFlags();
|
||||
|
||||
|
@ -147,6 +156,11 @@ void NotifyPage::load()
|
|||
|
||||
ui.systray_GroupChat->setChecked(Settings->getDisplayTrayGroupChat());
|
||||
|
||||
ui.trayNotify_PrivateChat->setChecked(traynotifyflags & TRAYNOTIFY_PRIVATECHAT);
|
||||
ui.trayNotify_Messages->setChecked(traynotifyflags & TRAYNOTIFY_MESSAGES);
|
||||
ui.trayNotify_Channels->setChecked(traynotifyflags & TRAYNOTIFY_CHANNELS);
|
||||
ui.trayNotify_Forums->setChecked(traynotifyflags & TRAYNOTIFY_FORUMS);
|
||||
|
||||
ui.addFeedsAtEnd->setChecked(Settings->getAddFeedsAtEnd());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue