- ChatViewSettings viewSettings(idString());
- _showFields = viewSettings.value("showFields", AllFields).toInt();
- _showOwnMessages = viewSettings.value("showOwnMsgs", true).toBool();
- viewSettings.notify("showFields", this, SLOT(showFieldsSettingsChanged(const QVariant &)));
- viewSettings.notify("showOwnMsgs", this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
+ ChatViewSettings viewSettings(idString());
+ _showFields = viewSettings.value("ShowFields", AllFields).toInt();
+ _showOwnMessages = viewSettings.value("ShowOwnMsgs", true).toBool();
+ viewSettings.notify("ShowFields", this, SLOT(showFieldsSettingChanged(const QVariant &)));
+ viewSettings.notify("ShowOwnMsgs", this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
+
+ // ChatMonitorSettingsPage
+ QString showHighlightsSettingsId = "ShowHighlights";
+ QString operationModeSettingsId = "OperationMode";
+ QString buffersSettingsId = "Buffers";
+
+ _showHighlights = viewSettings.value(showHighlightsSettingsId, false).toBool();
+ _operationMode = viewSettings.value(operationModeSettingsId, 0).toInt();
+ // read configured list of buffers to monitor/ignore
+ foreach(QVariant v, viewSettings.value(buffersSettingsId, QVariant()).toList())
+ _bufferIds << v.value<BufferId>();
+
+ viewSettings.notify(showHighlightsSettingsId, this, SLOT(showHighlightsSettingChanged(const QVariant &)));
+ viewSettings.notify(operationModeSettingsId, this, SLOT(operationModeSettingChanged(const QVariant &)));
+ viewSettings.notify(buffersSettingsId, this, SLOT(buffersSettingChanged(const QVariant &)));