camerauis/cameraxui/cxui/inc/cxuistillprecaptureview.h
changeset 39 c5025ea871a1
parent 19 d9aefe59d544
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".
    73      * Loads widgets that are not part of the default section in layouts xml.
    73      * Loads widgets that are not part of the default section in layouts xml.
    74      * Widgets are created at the time they are first loaded.
    74      * Widgets are created at the time they are first loaded.
    75      */
    75      */
    76     virtual void loadWidgets();
    76     virtual void loadWidgets();
    77 
    77 
    78     void updateOrientation(Qt::Orientation orientation);
       
    79 
       
    80 protected:
    78 protected:
    81 
    79 
    82     void showEvent(QShowEvent *event);
    80     void showEvent(QShowEvent *event);
    83     virtual void showToolbar();
    81     virtual bool allowShowControls() const;
    84 
    82 
    85 public slots:
    83 public slots:
    86 
    84 
    87     // from CxuiPrecaptureView
    85     // from CxuiPrecaptureView
    88     virtual void handleSettingValueChanged(const QString& key, QVariant newValue);
    86     virtual void handleSettingValueChanged(const QString& key, QVariant newValue);
    95     void focusAndCapture();
    93     void focusAndCapture();
    96     void capture();
    94     void capture();
    97     void setCapturePending();
    95     void setCapturePending();
    98     void goToVideo();
    96     void goToVideo();
    99 
    97 
   100     void launchSceneModesPopup();
       
   101 
    98 
   102     // Key events
    99     // Key events
   103     void handleCaptureKeyPressed();
   100     void handleCaptureKeyPressed();
   104     void handleAutofocusKeyPressed();
   101     void handleAutofocusKeyPressed();
   105     void handleAutofocusKeyReleased();
   102     void handleAutofocusKeyReleased();
   115      * cannot be captured within a given time of the key press, it is better to cancel
   112      * cannot be captured within a given time of the key press, it is better to cancel
   116      * the whole operation.
   113      * the whole operation.
   117      */
   114      */
   118     void resetCapturePendingFlag();
   115     void resetCapturePendingFlag();
   119 
   116 
   120     void showControls();
       
   121 
       
   122     /**
   117     /**
   123      * Application focus slots are called if focus state is changed.
   118      * Application focus slots are called if focus state is changed.
   124      * Camera is released or reserved according to new state.
   119      * Camera is released or reserved according to new state.
   125      */
   120      */
   126     void handleFocusLost();
   121     void handleFocusLost();
   127     void handleFocusGained();
       
   128     void launchSetting();
   122     void launchSetting();
   129     void updateImagesLeftLabel();
   123     void updateImagesLeftLabel();
   130 
   124 
   131 protected:
   125 protected:
   132     void initializeSettingsGrid();
   126     void initializeSettingsGrid();