~ubuntu-branches/ubuntu/vivid/regina-normal/vivid-proposed

« back to all changes in this revision

Viewing changes to kdeui/src/part/packetchooser.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2006-10-29 22:25:06 UTC
  • mfrom: (3.1.7 edgy)
  • Revision ID: james.westby@ubuntu.com-20061029222506-1y63yl1k6pwhhpwq
Tags: 4.3.1-3
Removed www-browser as an alternative to konqueror in regina-normal-doc
recommendations, since the GUI needs konqueror specifically to open the
API docs from the help menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *  Regina - A Normal Surface Theory Calculator                           *
5
5
 *  KDE User Interface                                                    *
6
6
 *                                                                        *
7
 
 *  Copyright (c) 1999-2004, Ben Burton                                   *
 
7
 *  Copyright (c) 1999-2006, Ben Burton                                   *
8
8
 *  For further details contact Ben Burton (bab@debian.org).              *
9
9
 *                                                                        *
10
10
 *  This program is free software; you can redistribute it and/or         *
19
19
 *                                                                        *
20
20
 *  You should have received a copy of the GNU General Public             *
21
21
 *  License along with this program; if not, write to the Free            *
22
 
 *  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,        *
23
 
 *  MA 02111-1307, USA.                                                   *
 
22
 *  Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,       *
 
23
 *  MA 02110-1301, USA.                                                   *
24
24
 *                                                                        *
25
25
 **************************************************************************/
26
26
 
96
96
    if (it != packets.end()) {
97
97
        // This may trigger a refreshContents(), but that's okay since
98
98
        // we're at the end of the routine.
99
 
        changeItem(PacketManager::iconSmall(renamed),
 
99
        changeItem(PacketManager::iconSmall(renamed, false),
100
100
            renamed->getPacketLabel().c_str(), it - packets.begin());
101
101
    }
102
102
}
153
153
    if (onAutoUpdate)
154
154
        unregisterFromAllPackets();
155
155
 
156
 
    while (count())
157
 
        removeItem(count() - 1);
 
156
    clear();
158
157
    packets.clear();
159
158
 
160
159
    // Fill it again.
177
176
    regina::NPacket* p = subtree;
178
177
    while (p && subtree->isGrandparentOf(p)) {
179
178
        if ((! filter) || (filter->accept(p))) {
180
 
            insertItem(PacketManager::iconSmall(p),
 
179
            insertItem(PacketManager::iconSmall(p, false),
181
180
                p->getPacketLabel().c_str());
182
181
            packets.push_back(p);
183
182
            if (onAutoUpdate)
199
198
 
200
199
    // Now match the packets up one by one.
201
200
    while (it != packets.end() || p != 0) {
 
201
        // Are we ignoring this packet?
 
202
        if (p && filter && ! filter->accept(p)) {
 
203
            p = p->nextTreePacket();
 
204
            continue;
 
205
        }
 
206
 
202
207
        // Out of packets?
203
208
        if (it == packets.end())
204
209
            return false;