File: scrollkeepertreebuilder.h

package info (click to toggle)
khelpcenter 4%3A25.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,216 kB
  • sloc: cpp: 6,279; xml: 378; python: 51; perl: 25; makefile: 5; sh: 3
file content (42 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
    SPDX-FileCopyrightText: 1999 Matthias Elter <me@kde.org>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef KHC_SCROLLKEEPERTREEBUILDER_H
#define KHC_SCROLLKEEPERTREEBUILDER_H

#include <QObject>

#include "navigatoritem.h"

class QDomNode;

namespace KHC
{

class ScrollKeeperTreeBuilder : public QObject
{
    Q_OBJECT
public:
    explicit ScrollKeeperTreeBuilder(QObject *parent);

    void build(NavigatorItem *parent);

    void buildOrHide(NavigatorItem *parent);

private:
    void loadConfig();
    int insertSection(NavigatorItem *parent, const QDomNode &sectNode, NavigatorItem *&created);
    void insertDoc(NavigatorItem *parent, const QDomNode &docNode);

    bool mShowEmptyDirs;
    QString mContentsList;
    QList<NavigatorItem *> mItems;
};

}

#endif // KHC_SCROLLKEEPERTREEBUILDER_H
// vim:ts=2:sw=2:et