~ubuntu-branches/ubuntu/trusty/quassel/trusty-updates

« back to all changes in this revision

Viewing changes to src/qtui/settingspages/chatmonitorsettingspage.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-18 23:18:25 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20140218231825-6vvoh451otn95pkn
Tags: 0.10~beta1-0ubuntu1
* New upstream beta relase
  - Drop debian/patches/upstream_fix_fullscreen_mode.diff which had been
    cherrypicked from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-2013 by the Quassel Project                        *
 
2
 *   Copyright (C) 2005-2014 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
63
63
    connect(ui.operationMode, SIGNAL(currentIndexChanged(int)), SLOT(switchOperationMode(int)));
64
64
    connect(ui.showHighlights, SIGNAL(toggled(bool)), SLOT(widgetHasChanged()));
65
65
    connect(ui.showOwnMessages, SIGNAL(toggled(bool)), SLOT(widgetHasChanged()));
 
66
    connect(ui.showBacklog, SIGNAL(toggled(bool)), SLOT(widgetHasChanged()));
 
67
    connect(ui.includeRead, SIGNAL(toggled(bool)), SLOT(widgetHasChanged()));
66
68
}
67
69
 
68
70
 
79
81
    settings["ShowOwnMsgs"] = false;
80
82
    settings["Buffers"] = QVariant();
81
83
    settings["Default"] = true;
 
84
    settings["ShowBacklog"] = true;
 
85
    settings["IncludeRead"] = false;
82
86
    load();
83
87
    widgetHasChanged();
84
88
}
95
99
    ui.operationMode->setCurrentIndex(settings["OperationMode"].toInt() - 1);
96
100
    ui.showHighlights->setChecked(settings["ShowHighlights"].toBool());
97
101
    ui.showOwnMessages->setChecked(settings["ShowOwnMsgs"].toBool());
 
102
    ui.showBacklog->setChecked(settings["ShowBacklog"].toBool());
 
103
    ui.includeRead->setChecked(settings["IncludeRead"].toBool());
98
104
 
99
105
    // get all available buffer Ids
100
106
    QList<BufferId> allBufferIds = Client::networkModel()->allBufferIds();
127
133
    settings["ShowHighlights"] = chatViewSettings.value("ShowHighlights", false);
128
134
    settings["ShowOwnMsgs"] = chatViewSettings.value("ShowOwnMsgs", false);
129
135
    settings["Buffers"] = chatViewSettings.value("Buffers", QVariantList());
 
136
    settings["ShowBacklog"] = chatViewSettings.value("ShowBacklog", true);
 
137
    settings["IncludeRead"] = chatViewSettings.value("IncludeRead", true);
130
138
}
131
139
 
132
140
 
137
145
    chatViewSettings.setValue("OperationMode", ui.operationMode->currentIndex() + 1);
138
146
    chatViewSettings.setValue("ShowHighlights", ui.showHighlights->isChecked());
139
147
    chatViewSettings.setValue("ShowOwnMsgs", ui.showOwnMessages->isChecked());
 
148
    chatViewSettings.setValue("ShowBacklog", ui.showBacklog->isChecked());
 
149
    chatViewSettings.setValue("IncludeRead", ui.includeRead->isChecked());
140
150
 
141
151
    // save list of active buffers
142
152
    QVariantList saveableBufferIdList;
165
175
        return true;
166
176
    if (settings["ShowOwnMsgs"].toBool() != ui.showOwnMessages->isChecked())
167
177
        return true;
 
178
    if (settings["ShowBacklog"].toBool() != ui.showBacklog->isChecked())
 
179
        return true;
 
180
    if (settings["IncludeRead"].toBool() != ui.includeRead->isChecked())
 
181
        return true;
168
182
 
169
183
    if (_configActive->bufferList().count() != settings["Buffers"].toList().count())
170
184
        return true;