userguide/inc/HelpCategoryView.h
branchRCL_3
changeset 18 cbffe13eac63
parent 17 12f60d9a73b3
equal deleted inserted replaced
17:12f60d9a73b3 18:cbffe13eac63
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HELPCATEGORYVIEW_H
       
    19 #define HELPCATEGORYVIEW_H
       
    20 
       
    21 #include <HelpBaseView.h>
       
    22 
       
    23 #include "HelpDocumentLoader.h"
       
    24 
       
    25 class HbTreeView;
       
    26 class QStandardItem;
       
    27 
       
    28 class HelpCategoryView : public HelpBaseView
       
    29 {
       
    30 	Q_OBJECT
       
    31 	
       
    32 public:
       
    33 	HelpCategoryView();
       
    34 	~HelpCategoryView();
       
    35 	void init();
       
    36 
       
    37 private:
       
    38 	void initDocMl();
       
    39 	void initAllList();
       
    40 
       
    41 private:
       
    42 	void expandCollapseAllList(QStandardItem* item, bool expand);
       
    43 	void updateExpandCollapseAction(bool expand);
       
    44     
       
    45 private slots: // handle list event
       
    46     void onAllListActivated(const QModelIndex& index);
       
    47 
       
    48 private slots: // handle menu event
       
    49 	void onExpandOrCollapseAll();
       
    50 
       
    51 private:
       
    52 	HbTreeView*	mListAll;
       
    53 	int			mExpandCount;
       
    54 };
       
    55 
       
    56 #endif //HELPCATEGORYVIEW_H