1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <hbtransparentwindow.h> |
|
19 #include <hbslider.h> |
|
20 #include <hbtoolbar.h> |
|
21 #include <hbaction.h> |
|
22 |
|
23 #include "cxutils.h" |
|
24 #include "cxenamespace.h" |
|
25 #include "cxuienums.h" |
|
26 #include "cxuidocumentloader.h" |
|
27 #include "cxuistillprecaptureview.h" |
|
28 #include "cxuistillprecaptureview2.h" |
|
29 |
|
30 |
|
31 using namespace Cxe; |
|
32 using namespace CxUiLayout; |
|
33 |
|
34 |
|
35 CxuiStillPrecaptureView2::CxuiStillPrecaptureView2( QGraphicsItem *parent) : |
|
36 CxuiStillPrecaptureView(parent) |
|
37 { |
|
38 CX_DEBUG_IN_FUNCTION(); |
|
39 } |
|
40 |
|
41 CxuiStillPrecaptureView2::~CxuiStillPrecaptureView2() |
|
42 { |
|
43 CX_DEBUG_IN_FUNCTION(); |
|
44 } |
|
45 |
|
46 void CxuiStillPrecaptureView2::loadDefaultWidgets() |
|
47 { |
|
48 CX_DEBUG_ENTER_FUNCTION(); |
|
49 CX_DEBUG_ASSERT(mDocumentLoader); |
|
50 |
|
51 // get pointer to the viewfinder |
|
52 QGraphicsWidget *widget = 0; |
|
53 widget = mDocumentLoader->findWidget(STILL_PRE_CAPTURE_VIEWFINDER); |
|
54 mViewfinder = qobject_cast<HbTransparentWindow *>(widget); |
|
55 CX_DEBUG_ASSERT(mViewfinder); |
|
56 |
|
57 |
|
58 widget = mDocumentLoader->findWidget(STILL_PRE_CAPTURE_ZOOM_SLIDER); |
|
59 mSlider = qobject_cast<HbSlider *>(widget); |
|
60 CX_DEBUG_ASSERT(mSlider); |
|
61 Q_ASSERT_X((mSlider != 0), "camerax ui", "invalid xml file"); |
|
62 |
|
63 widget = mDocumentLoader->findWidget(STILL_PRE_CAPTURE_TOOLBAR); |
|
64 mToolBar = qobject_cast<HbToolBar *>(widget); |
|
65 CX_DEBUG_ASSERT(mToolBar); |
|
66 |
|
67 QObject *object = 0; |
|
68 object = mDocumentLoader->findObject(STILL_PRE_CAPTURE_FLASH_ACTION); |
|
69 mFlashSetting = qobject_cast<HbAction *>(object); |
|
70 CX_DEBUG_ASSERT(mFlashSetting); |
|
71 |
|
72 mWidgetsLoaded = true; |
|
73 |
|
74 hideControls(); |
|
75 |
|
76 CX_DEBUG_EXIT_FUNCTION(); |
|
77 } |
|
78 |
|
79 |
|
80 void CxuiStillPrecaptureView2::loadWidgets() |
|
81 { |
|
82 CX_DEBUG_ENTER_FUNCTION(); |
|
83 CX_DEBUG_EXIT_FUNCTION(); |
|
84 } |
|
85 |
|
86 |
|
87 // end of file |
|