camerauis/cameraxui/cxui/layouts/view_still_precapture.docml
changeset 39 c5025ea871a1
parent 38 0f0b4c1d7744
child 36 b12f3922a74f
equal deleted inserted replaced
38:0f0b4c1d7744 39:c5025ea871a1
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <hbdocument context="CxuiStillPrecaptureView" version="1.0">
     2 <hbdocument context="CxuiStillPrecaptureView" version="1.1">
     3     <object name="cxui_action_goto_2_camera" type="HbAction">
     3     <object name="cxui_action_goto_2_camera" type="HbAction">
     4         <string name="text" value="Go to 2nd camera"/>
     4         <string name="text" value="Go to 2nd camera"/>
     5     </object>
     5     </object>
     6     <object name="cxui_action_goto_photos" type="HbAction">
     6     <object name="cxui_action_goto_photos" type="HbAction">
     7         <string locid="txt_cam_opt_go_to_photos" name="text" value="Go to Photos"/>
     7         <string locid="txt_cam_opt_go_to_photos" name="text" value="Go to Photos"/>
    79                 <anchoritem dst="transparent" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
    79                 <anchoritem dst="transparent" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
    80             </layout>
    80             </layout>
    81         </widget>
    81         </widget>
    82         <string name="title" value="Camera"/>
    82         <string name="title" value="Camera"/>
    83         <bool name="contentFullScreen" value="TRUE"/>
    83         <bool name="contentFullScreen" value="TRUE"/>
    84         <enums name="titleBarFlags" value="TitleBarHidden|TitleBarTransparent"/>
       
    85     </widget>
    84     </widget>
    86     <section name="still_capture_with_widgets">
    85     <section name="still_capture_with_widgets">
    87         <widget name="still_capture_view" type="HbView">
    86         <widget name="still_capture_view" type="HbView">
    88             <widget name="still_view_menu" role="HbView:menu" type="HbMenu"/>
    87             <widget name="still_view_menu" role="HbView:menu" type="HbMenu"/>
    89             <widget name="still_container" role="HbView:widget" type="HbWidget">
    88             <widget name="still_container" role="HbView:widget" type="HbWidget">
    91                     <enums name="layoutDirection" value="RightToLeft"/>
    90                     <enums name="layoutDirection" value="RightToLeft"/>
    92                     <real name="z" value="7"/>
    91                     <real name="z" value="7"/>
    93                     <sizehint type="PREFERRED" width="var(hb-param-widget-toolbar-height)"/>
    92                     <sizehint type="PREFERRED" width="var(hb-param-widget-toolbar-height)"/>
    94                     <enums name="orientation" value="Vertical"/>
    93                     <enums name="orientation" value="Vertical"/>
    95                     <bool name="visible" value="TRUE"/>
    94                     <bool name="visible" value="TRUE"/>
    96                     <ref object="cxui_action_capture" role="HbToolBar:addAction"/>
    95                     <ref object="cxui_action_capture" role="HbWidget:addAction"/>
    97                     <ref object="cxui_action_flash" role="HbToolBar:addAction"/>
    96                     <ref object="cxui_action_flash" role="HbWidget:addAction"/>
    98                     <ref object="cxui_action_scenemodes" role="HbToolBar:addAction"/>
    97                     <ref object="cxui_action_scenemodes" role="HbWidget:addAction"/>
    99                     <ref object="cxui_action_goto_video" role="HbToolBar:addAction"/>
    98                     <ref object="cxui_action_goto_video" role="HbWidget:addAction"/>
   100                 </widget>
    99                 </widget>
   101                 <widget name="zoom" type="HbSlider">
   100                 <widget name="zoom" type="HbSlider">
   102                     <real name="z" value="2"/>
   101                     <real name="z" value="2"/>
   103                     <sizehint height="40un" type="PREFERRED"/>
   102                     <sizehint height="40un" type="PREFERRED" width="9un"/>
   104                     <enums name="orientation" value="Vertical"/>
   103                     <enums name="orientation" value="Vertical"/>
   105                     <bool name="visible" value="FALSE"/>
   104                     <bool name="visible" value="FALSE"/>
   106                 </widget>
   105                 </widget>
   107                 <widget name="images_left_container" type="HbWidget">
   106                 <widget name="images_left_container" type="HbWidget">
   108                     <widget name="images_remaining" type="HbLabel">
   107                     <widget name="images_remaining" type="HbLabel">
   119                 </widget>
   118                 </widget>
   120                 <widget name="still_precapture_selftimer_container" type="HbWidget">
   119                 <widget name="still_precapture_selftimer_container" type="HbWidget">
   121                     <widget name="selftimer_button_container" type="HbWidget">
   120                     <widget name="selftimer_button_container" type="HbWidget">
   122                         <widget name="still_selftimer_start_button" type="HbPushButton">
   121                         <widget name="still_selftimer_start_button" type="HbPushButton">
   123                             <real name="z" value="5"/>
   122                             <real name="z" value="5"/>
       
   123                             <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0"/>
       
   124                             <sizehint type="FIXED" width="20un"/>
   124                             <string locid="txt_cam_button_start" name="text" value="Start"/>
   125                             <string locid="txt_cam_button_start" name="text" value="Start"/>
   125                             <bool name="visible" value="TRUE"/>
   126                             <bool name="visible" value="TRUE"/>
   126                             <string name="state" value="normal"/>
   127                             <string name="state" value="normal"/>
   127                             <fontspec name="fontSpec" role="Undefined" textheight="var(hb-param-text-height-tiny)"/>
   128                             <fontspec name="fontSpec" role="Undefined" textheight="var(hb-param-text-height-tiny)"/>
   128                         </widget>
   129                         </widget>
   129                         <widget name="still_selftimer_cancel_button" type="HbPushButton">
   130                         <widget name="still_selftimer_cancel_button" type="HbPushButton">
   130                             <real name="z" value="4"/>
   131                             <real name="z" value="4"/>
       
   132                             <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0"/>
       
   133                             <sizehint type="FIXED" width="20un"/>
   131                             <string locid="txt_cam_button_cancel" name="text" value="Cancel"/>
   134                             <string locid="txt_cam_button_cancel" name="text" value="Cancel"/>
   132                             <bool name="visible" value="TRUE"/>
   135                             <bool name="visible" value="TRUE"/>
   133                             <string name="state" value="normal"/>
   136                             <string name="state" value="normal"/>
   134                             <fontspec name="fontSpec" role="Undefined" textheight="var(hb-param-text-height-tiny)"/>
   137                             <fontspec name="fontSpec" role="Undefined" textheight="var(hb-param-text-height-tiny)"/>
   135                         </widget>
   138                         </widget>
   190                     <anchoritem dst="images_left_container" dstEdge="LEFT" spacing="11un" src="" srcEdge="LEFT"/>
   193                     <anchoritem dst="images_left_container" dstEdge="LEFT" spacing="11un" src="" srcEdge="LEFT"/>
   191                     <anchoritem dst="still_precapture_selftimer_container" dstEdge="CENTERH" spacing="0" src="" srcEdge="CENTERH"/>
   194                     <anchoritem dst="still_precapture_selftimer_container" dstEdge="CENTERH" spacing="0" src="" srcEdge="CENTERH"/>
   192                     <anchoritem dst="still_precapture_selftimer_container" dstEdge="CENTERV" spacing="0" src="" srcEdge="CENTERV"/>
   195                     <anchoritem dst="still_precapture_selftimer_container" dstEdge="CENTERV" spacing="0" src="" srcEdge="CENTERV"/>
   193                 </layout>
   196                 </layout>
   194             </widget>
   197             </widget>
   195             <enums name="titleBarFlags" value="TitleBarFloating|TitleBarTransparent"/>
       
   196         </widget>
   198         </widget>
   197         <connect receiver="still_capture_view" sender="cxui_action_setdefaultscenemode" signal="triggered(bool)" slot="launchNotSupportedNotification()"/>
   199         <connect receiver="still_capture_view" sender="cxui_action_setdefaultscenemode" signal="triggered(bool)" slot="launchNotSupportedNotification()"/>
   198         <connect receiver="still_capture_view" sender="cxui_action_image_quality" signal="triggered(bool)" slot="launchSetting()"/>
   200         <connect receiver="still_capture_view" sender="cxui_action_image_quality" signal="triggered(bool)" slot="launchSetting()"/>
   199         <connect receiver="still_capture_view" sender="still_view_menu" signal="aboutToShow()" slot="disableControlsTimeout()"/>
   201         <connect receiver="still_capture_view" sender="still_view_menu" signal="aboutToShow()" slot="disableControlsTimeout()"/>
   200         <connect receiver="still_capture_view" sender="still_view_menu" signal="aboutToHide()" slot="hideControls()"/>
   202         <connect receiver="still_capture_view" sender="still_view_menu" signal="aboutToHide()" slot="hideControls()"/>
   206         <connect receiver="still_capture_view" sender="zoom" signal="valueChanged(int)" slot="zoomTo(int)"/>
   208         <connect receiver="still_capture_view" sender="zoom" signal="valueChanged(int)" slot="zoomTo(int)"/>
   207         <connect receiver="still_capture_view" sender="cxui_action_capture" signal="triggered(bool)" slot="focusAndCapture()"/>
   209         <connect receiver="still_capture_view" sender="cxui_action_capture" signal="triggered(bool)" slot="focusAndCapture()"/>
   208         <connect receiver="still_capture_view" sender="cxui_action_goto_video" signal="triggered(bool)" slot="goToVideo()"/>
   210         <connect receiver="still_capture_view" sender="cxui_action_goto_video" signal="triggered(bool)" slot="goToVideo()"/>
   209         <connect receiver="still_capture_view" sender="cxui_action_goto_video" signal="triggered(bool)" slot="hideControls()"/>
   211         <connect receiver="still_capture_view" sender="cxui_action_goto_video" signal="triggered(bool)" slot="hideControls()"/>
   210         <connect receiver="still_capture_view" sender="cxui_action_flash" signal="triggered(bool)" slot="launchSetting()"/>
   212         <connect receiver="still_capture_view" sender="cxui_action_flash" signal="triggered(bool)" slot="launchSetting()"/>
   211         <connect receiver="still_capture_view" sender="cxui_action_scenemodes" signal="triggered(bool)" slot="launchSceneModesPopup()"/>
   213         <connect receiver="still_capture_view" sender="cxui_action_scenemodes" signal="triggered(bool)" slot="launchScenesView()"/>
   212     </section>
   214     </section>
   213     <section name="still_standalone_mode">
   215     <section name="still_standalone_mode">
   214         <widget name="still_view_menu" role="HbView:menu" type="HbMenu">
   216         <widget name="still_view_menu" role="HbView:menu" type="HbMenu">
   215             <ref object="cxui_action_goto_photos" role="HbMenu:addAction"/>
   217             <ref object="cxui_action_goto_photos" role="HbWidget:addAction"/>
   216             <ref object="cxui_action_self_timer" role="HbMenu:addAction"/>
   218             <ref object="cxui_action_self_timer" role="HbWidget:addAction"/>
   217             <ref object="cxui_action_settings" role="HbMenu:addAction"/>
   219             <ref object="cxui_action_settings" role="HbWidget:addAction"/>
   218             <widget name="still_submenu_general" role="HbMenu:menu" type="HbMenu">
   220             <widget name="still_submenu_general" role="HbMenu:menu" type="HbMenu">
   219                 <string locid="txt_cam_opt_general_settings" name="title" value="General settings"/>
   221                 <string locid="txt_cam_opt_general_settings" name="title" value="General settings"/>
   220                 <ref object="cxui_action_stillpostcapture" role="HbMenu:addAction"/>
   222                 <ref object="cxui_action_stillpostcapture" role="HbWidget:addAction"/>
   221                 <ref object="cxui_action_image_quality" role="HbMenu:addAction"/>
   223                 <ref object="cxui_action_image_quality" role="HbWidget:addAction"/>
   222             </widget>
   224             </widget>
   223             <ref object="cxui_action_setdefaultscenemode" role="HbMenu:addAction"/>
   225             <ref object="cxui_action_setdefaultscenemode" role="HbWidget:addAction"/>
   224         </widget>
   226         </widget>
   225     </section>
   227     </section>
   226     <section name="still_embedded_mode">
   228     <section name="still_embedded_mode">
   227         <widget name="still_view_menu" role="HbView:menu" type="HbMenu">
   229         <widget name="still_view_menu" role="HbView:menu" type="HbMenu">
   228             <ref object="cxui_action_self_timer" role="HbMenu:addAction"/>
   230             <ref object="cxui_action_self_timer" role="HbWidget:addAction"/>
   229             <ref object="cxui_action_settings" role="HbMenu:addAction"/>
   231             <ref object="cxui_action_settings" role="HbWidget:addAction"/>
   230             <widget name="still_submenu_general" role="HbMenu:menu" type="HbMenu">
   232             <widget name="still_submenu_general" role="HbMenu:menu" type="HbMenu">
   231                 <string locid="txt_cam_opt_general_settings" name="title" value="General settings"/>
   233                 <string locid="txt_cam_opt_general_settings" name="title" value="General settings"/>
   232                 <ref object="cxui_action_image_quality" role="HbMenu:addAction"/>
   234                 <ref object="cxui_action_image_quality" role="HbMenu:addAction"/>
   233             </widget>
   235             </widget>
   234         </widget>
   236         </widget>
   235     </section>
   237     </section>
   236     <metadata activeUIState="still_standalone_mode" display="NHD landscape" unit="un">
   238     <metadata activeUIState="still_standalone_mode" display="NHD-3.2-inch_landscape" unit="un">
   237         <uistate name="Common ui state" sections="#common"/>
   239         <uistate name="Common ui state" sections="#common"/>
   238         <uistate name="still_capture_with_widgets" sections="#common still_capture_with_widgets"/>
   240         <uistate name="still_capture_with_widgets" sections="#common still_capture_with_widgets"/>
   239         <uistate name="still_standalone_mode" sections="#common still_capture_with_widgets still_standalone_mode"/>
   241         <uistate name="still_standalone_mode" sections="#common still_capture_with_widgets still_standalone_mode"/>
   240         <uistate name="still_embedded_mode" sections="#common still_capture_with_widgets still_embedded_mode"/>
   242         <uistate name="still_embedded_mode" sections="#common still_capture_with_widgets still_embedded_mode"/>
   241     </metadata>
   243     </metadata>