userguide/inc/HelpMainWindow.h
changeset 15 c0dfc135a46c
parent 13 1eb8015a8491
child 18 375271912456
child 26 97d7f0705d0a
equal deleted inserted replaced
13:1eb8015a8491 15:c0dfc135a46c
    19 #define HELPMAINWINDOW_H
    19 #define HELPMAINWINDOW_H
    20 
    20 
    21 #include <hbmainwindow.h>
    21 #include <hbmainwindow.h>
    22 
    22 
    23 #include "HelpCommon.h"
    23 #include "HelpCommon.h"
       
    24 #include "HelpDocumentLoader.h"
    24 
    25 
    25 class HelpCategoryView;
    26 class HelpCategoryView;
    26 class HelpContentsView;
    27 class HelpContentsView;
       
    28 class HbToolBar;
    27 
    29 
    28 class HelpMainWindow : public HbMainWindow
    30 class HelpMainWindow : public HbMainWindow
    29 {
    31 {
    30 	Q_OBJECT
    32 	Q_OBJECT
    31 
    33 
    37     void onActivateView(HelpViewName viewName);
    39     void onActivateView(HelpViewName viewName);
    38 
    40 
    39 private: // activate views
    41 private: // activate views
    40 	void activateCategoryView();
    42 	void activateCategoryView();
    41 	void activateContentsView();
    43 	void activateContentsView();
    42 	void initBackAction();
    44 	void initToolbar();
       
    45 	void RefreshToolbarText(Qt::Orientation orientation);
    43 	
    46 	
    44 private:
    47 private:
    45 	void connectViewSignal(const QObject *object);
    48 	void connectViewSignal(const QObject *object);
    46 
    49 
    47 signals:
    50 signals:
    48 	void backActionSignal();
    51 	void backActionSignal();
    49 	
    52 	
    50 private slots: // handle view event
    53 private slots: // handle tollbar event
    51     void onShowAllList();
    54     void onToolbarAll();
    52     void onShowFindList();
    55     void onToolbarFind();
    53     void onShowOnlineSupport();
    56     void onToolbarOnlineSupport();
       
    57 
       
    58 private slots:
       
    59 	void onOrientationChanged(Qt::Orientation orientation);
    54 
    60 
    55 private:
    61 private:
    56 	HelpCategoryView* mCategoryView;
    62 	HelpCategoryView* mCategoryView;
    57 	HelpContentsView* mContentsView;
    63 	HelpContentsView* mContentsView;
       
    64 	HbToolBar*         mToolBar;
       
    65 	HelpUIBuilder mBuilder;
    58 
    66 
    59 };
    67 };
    60 
    68 
    61 #endif //HELPMAINWINDOW_H
    69 #endif //HELPMAINWINDOW_H