File indexing completed on 2024-05-12 05:46:30

0001 /*
0002  *  navigatorappitem.h - part of the KDE Help Center
0003  *
0004  *  Copyright (C) 1999 Matthias Elter (me@kde.org)
0005  *
0006  *  This program is free software; you can redistribute it and/or
0007  *  modify it under the terms of the GNU General Public
0008  *  License version 2 or at your option version 3 as published
0009  *  by the Free Software Foundation.
0010  *
0011  *  This program is distributed in the hope that it will be useful,
0012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  *  GNU General Public License for more details.
0015  *
0016  *  You should have received a copy of the GNU General Public License
0017  *  along with this program; if not, write to the Free Software
0018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0019  */
0020 
0021 #ifndef KHC_NAVIGATORAPPITEM_H
0022 #define KHC_NAVIGATORAPPITEM_H
0023 
0024 #include "navigatoritem.h"
0025 
0026 namespace KHC {
0027 
0028 class TOC;
0029 
0030 class NavigatorAppItem : public NavigatorItem
0031 {
0032   public:
0033     NavigatorAppItem( DocEntry *entry, QTreeWidgetItem *parent );
0034 
0035     NavigatorAppItem( DocEntry *entry, QTreeWidget *parent,
0036                       QTreeWidgetItem *after );
0037     NavigatorAppItem( DocEntry *entry, QTreeWidgetItem *parent,
0038                       QTreeWidgetItem *after );
0039 
0040     ~NavigatorAppItem();
0041 
0042     void itemExpanded( bool open ) override;
0043 
0044   private:
0045     void scheduleTOCBuild();
0046 
0047     TOC *mToc = nullptr;
0048     
0049     static QMap< QString,NavigatorAppItem* > s_menuItemsMap;
0050     
0051 };
0052 
0053 }
0054 
0055 #endif //KHC_NAVIGATORAPPITEM_H
0056 // vim:ts=2:sw=2:et