camerauis/cameraxui/cxui/inc/cxuiscenemodeview.h
changeset 39 c5025ea871a1
parent 28 3075d9b614e6
child 36 b12f3922a74f
equal deleted inserted replaced
38:0f0b4c1d7744 39:c5025ea871a1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    29 #include "cxeerror.h"
    29 #include "cxeerror.h"
    30 #include "cxenamespace.h"
    30 #include "cxenamespace.h"
    31 #include "cxuisettingsinfo.h"
    31 #include "cxuisettingsinfo.h"
    32 #include "cxuienums.h"
    32 #include "cxuienums.h"
    33 #include "cxeengine.h"
    33 #include "cxeengine.h"
       
    34 #include "cxuiview.h"
    34 
    35 
    35 class CxuiCaptureKeyHandler;
    36 class CxuiCaptureKeyHandler;
    36 class CxuiDocumentLoader;
    37 class CxuiDocumentLoader;
    37 class HbPushButton;
    38 class HbPushButton;
    38 class HbLabel;
    39 class HbLabel;
    43 /**
    44 /**
    44  * Scene mode view class for both video and still sides
    45  * Scene mode view class for both video and still sides
    45  */
    46  */
    46 
    47 
    47 
    48 
    48 class CxuiSceneModeView : public HbView
    49 class CxuiSceneModeView : public CxuiView
    49 {
    50 {
    50     Q_OBJECT
    51     Q_OBJECT
    51 
    52 
    52 public:
    53 public:
    53     CxuiSceneModeView(QGraphicsItem *parent = 0);
    54     CxuiSceneModeView(QGraphicsItem *parent = 0);
    74 private slots:
    75 private slots:
    75     void handleSceneRadiobuttonPress(int index);
    76     void handleSceneRadiobuttonPress(int index);
    76     void finishScenesTransition();
    77     void finishScenesTransition();
    77     void handleOkButtonPress();
    78     void handleOkButtonPress();
    78     void handleCancelButtonPress();
    79     void handleCancelButtonPress();
    79     void releaseCameraHw();
       
    80 
    80 
    81 protected:
    81 protected:
    82     void showEvent(QShowEvent *event);
    82     void showEvent(QShowEvent *event);
       
    83     bool allowShowControls() const;
    83 
    84 
    84 private:
    85 private:
    85     QString backgroundForScene(const QString& sceneId);
    86     QString backgroundForScene(const QString& sceneId);
    86     void startBackgroundTransition();
    87     void startBackgroundTransition();
    87     void createWidgetBackgroundGraphic(HbWidget *widget,
       
    88                            const QString &graphicName,
       
    89                            HbFrameDrawer::FrameType frameType =
       
    90                            HbFrameDrawer::NinePieces);
       
    91 
    88 
    92     void connectSignals();
    89     void connectSignals();
    93     void closeView();
    90     void closeView();
    94 
    91 
    95 private:
    92 private:
    96     HbMainWindow *mMainWindow; //not own
       
    97     CxuiSettingsInfo *mSettingsInfo;
    93     CxuiSettingsInfo *mSettingsInfo;
    98     CxeEngine *mEngine; //not own
       
    99     CxuiDocumentLoader *mDocumentLoader; //not own
       
   100     CxuiCaptureKeyHandler *mCaptureKeyHandler;
       
   101 
    94 
   102     HbLabel* mScenesBackground;
    95     HbLabel* mScenesBackground;
   103     HbLabel* mScenesBackground2;
    96     HbLabel* mScenesBackground2;
   104     CxuiSettingRadioButtonList* mScenesList;
    97     CxuiSettingRadioButtonList* mScenesList;
   105     QList<CxUiSettings::SettingItem> mSettingPairList;
    98     QList<CxUiSettings::SettingItem> mSettingPairList;