camerauis/cameraxui/cxui/inc/cxuiprecaptureview.h
changeset 58 ddba9caa7f32
parent 55 0da2a5b56583
equal deleted inserted replaced
55:0da2a5b56583 58:ddba9caa7f32
    25 #include <hbframedrawer.h>
    25 #include <hbframedrawer.h>
    26 
    26 
    27 #include "cxezoomcontrol.h"
    27 #include "cxezoomcontrol.h"
    28 #include "cxegeotaggingtrail.h"
    28 #include "cxegeotaggingtrail.h"
    29 #include "cxeviewfindercontrol.h"
    29 #include "cxeviewfindercontrol.h"
    30 #include "cxuidisplaypropertyhandler.h"
       
    31 #include "cxuiview.h"
    30 #include "cxuiview.h"
    32 
    31 
    33 
    32 
    34 class HbAction;
    33 class HbAction;
    35 class HbLabel;
    34 class HbLabel;
    38 class HbMainWindow;
    37 class HbMainWindow;
    39 class CxuiSettingsInfo;
    38 class CxuiSettingsInfo;
    40 class HbToolBarExtension;
    39 class HbToolBarExtension;
    41 class CxuiDocumentLoader;
    40 class CxuiDocumentLoader;
    42 class HbTransparentWindow;
    41 class HbTransparentWindow;
    43 class CxuiCaptureKeyHandler;
       
    44 class CxuiCaptureKeyHandler;
    42 class CxuiCaptureKeyHandler;
    45 class CxuiSettingDialog;
    43 class CxuiSettingDialog;
    46 class CxuiSettingRadioButtonList;
    44 class CxuiSettingRadioButtonList;
    47 class CxuiSettingSlider;
    45 class CxuiSettingSlider;
    48 class HbToolBarExtension;
    46 class HbToolBarExtension;
    66 public:
    64 public:
    67 
    65 
    68     virtual void construct(HbMainWindow *mainWindow,
    66     virtual void construct(HbMainWindow *mainWindow,
    69                            CxeEngine *engine,
    67                            CxeEngine *engine,
    70                            CxuiDocumentLoader *documentLoader,
    68                            CxuiDocumentLoader *documentLoader,
    71                            CxuiCaptureKeyHandler *keyHandler,
    69                            CxuiCaptureKeyHandler *keyHandler);
    72                            HbActivityManager *activityManager);
       
    73 
    70 
    74     virtual bool isStandbyModeSupported() const;
    71     virtual bool isStandbyModeSupported() const;
    75     /**
    72     /**
    76     * 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.
    77     * Widgets are created at the time they are first loaded.
    74     * Widgets are created at the time they are first loaded.
   121     virtual void handleAutofocusKeyPressed();
   118     virtual void handleAutofocusKeyPressed();
   122 
   119 
   123     // Camera / Engine
   120     // Camera / Engine
   124     void handleEngineZoomStateChange(CxeZoomControl::State newState, CxeError::Id error);
   121     void handleEngineZoomStateChange(CxeZoomControl::State newState, CxeError::Id error);
   125     void handleZoomLevelChange(int);
   122     void handleZoomLevelChange(int);
   126     void handleVfStateChanged(CxeViewfinderControl::State newState, CxeError::Id error);
   123     virtual void handleVfStateChanged(CxeViewfinderControl::State newState, CxeError::Id error);
   127     // UI: Zoom slider change notification
   124     // UI: Zoom slider change notification
   128     void zoomTo(int value);
   125     void zoomTo(int value);
   129 
   126 
   130     void disableControlsTimeout();
   127     void disableControlsTimeout();
   131 
   128 
   163     CxuiSettingDialog* createSliderSettingsDialog();
   160     CxuiSettingDialog* createSliderSettingsDialog();
   164     QPointF getDialogPosition();
   161     QPointF getDialogPosition();
   165 
   162 
   166 protected:
   163 protected:
   167     HbTransparentWindow *mViewfinder; // not own, owned by the graphics scene
   164     HbTransparentWindow *mViewfinder; // not own, owned by the graphics scene
   168     CxuiDisplayPropertyHandler *mDisplayHandler;
       
   169     HbToolBarExtension *mSettingsGrid;
   165     HbToolBarExtension *mSettingsGrid;
   170     bool mWidgetsLoaded;
   166     bool mWidgetsLoaded;
   171     CxuiSettingDialog *mSettingsDialog;
   167     CxuiSettingDialog *mSettingsDialog;
   172     CxuiSettingRadioButtonList *mSettingsDialogList;
   168     CxuiSettingRadioButtonList *mSettingsDialogList;
   173     HbLabel *mQualityIcon;
   169     HbLabel *mQualityIcon;