src/hbapps/hbthemechanger/resourceview.h
changeset 7 923ff622b8b9
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (developer.feedback@nokia.com)
       
     6 **
       
     7 ** This file is part of the HbApps module of the UI Extensions for Mobile.
       
     8 **
       
     9 ** GNU Lesser General Public License Usage
       
    10 ** This file may be used under the terms of the GNU Lesser General Public
       
    11 ** License version 2.1 as published by the Free Software Foundation and
       
    12 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
       
    13 ** Please review the following information to ensure the GNU Lesser General
       
    14 ** Public License version 2.1 requirements will be met:
       
    15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    16 **
       
    17 ** In addition, as a special exception, Nokia gives you certain additional
       
    18 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    20 **
       
    21 ** If you have questions regarding the use of this file, please contact
       
    22 ** Nokia at developer.feedback@nokia.com.
       
    23 **
       
    24 ****************************************************************************/
       
    25 #ifndef RESOURCEVIEW_H
       
    26 #define RESOURCEVIEW_H
       
    27 
       
    28 #include <hbview.h>
       
    29 
       
    30 class HbMainWindow;
       
    31 class HbDataForm;
       
    32 class HbDataFormModelItem;
       
    33 class HbIconItem;
       
    34 class HbTumbleView;
       
    35 class HbSearchPanel;
       
    36 class HbLabel;
       
    37 class HbIconAnimator;
       
    38 
       
    39 class ResourceView : public HbView
       
    40 {
       
    41 Q_OBJECT
       
    42 public:
       
    43     ResourceView(HbMainWindow *mainWindow, HbView* parent=0);
       
    44     ~ResourceView();
       
    45 
       
    46     enum ListMode {
       
    47         iconMode,
       
    48         colorMode,
       
    49         effectMode,
       
    50         animationMode
       
    51     };
       
    52 
       
    53 public slots:
       
    54     void close();
       
    55     void iconModeSelected();
       
    56     void colorModeSelected();
       
    57     void effectModeSelected();
       
    58     void animationModeSelected();
       
    59     void iconItemSelected(int index);
       
    60     void colorItemSelected(int index);
       
    61     void effectItemSelected(int index);
       
    62     void animationItemSelected(int index);
       
    63     void criteriaChanged(const QString &criteria);
       
    64 private:
       
    65     HbMainWindow *mMainWindow;
       
    66     HbView *mParentView;
       
    67 
       
    68     QStringList mThemedIcons;
       
    69     QStringList mThemedColors;
       
    70     QStringList mThemedEffects;
       
    71     QStringList mThemedAnimations;
       
    72     HbLabel *mResourceItem;
       
    73     HbTumbleView *mResourcesList;
       
    74     HbSearchPanel *mSearchPanel;
       
    75     HbIconAnimator *mAnimator;
       
    76 
       
    77     ListMode mMode;
       
    78     void loadThemedIcons();
       
    79     void loadThemedColors();    
       
    80     void loadThemedEffects();
       
    81     void loadThemedAnimations();
       
    82     void toggleMode(ListMode mode);
       
    83 };
       
    84 
       
    85 
       
    86 #endif // RESOURCEVIEW_H