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". |
21 //#include <hbeffect.h> |
21 //#include <hbeffect.h> |
22 |
22 |
23 #include "cxuidocumentloader.h" |
23 #include "cxuidocumentloader.h" |
24 #include "cxuistillprecaptureview.h" |
24 #include "cxuistillprecaptureview.h" |
25 #include "cxuipostcaptureview.h" |
25 #include "cxuipostcaptureview.h" |
26 #include "cxuistillprecaptureview2.h" |
|
27 #include "cxuivideoprecaptureview.h" |
26 #include "cxuivideoprecaptureview.h" |
28 #include "cxuivideoprecaptureview2.h" |
27 #include "cxuiscenemodeview.h" |
29 #include "cxutils.h" //CX_DEBUG_ASSERT |
28 #include "cxutils.h" //CX_DEBUG_ASSERT |
30 #include "cxuisettingdialog.h" |
29 #include "cxuisettingdialog.h" |
31 #include "cxuisettingbutton.h" |
|
32 #include "cxuisettingslider.h" |
30 #include "cxuisettingslider.h" |
33 #include "cxuisettingradiobuttonlist.h" |
31 #include "cxuisettingradiobuttonlist.h" |
34 #include "cxuiscenelabel.h" |
32 #include "cxuizoomslider.h" |
35 #include "cxuisettingbuttoncontainer.h" |
|
36 #include "cxeengine.h" |
33 #include "cxeengine.h" |
37 #include "cxuienums.h" |
34 #include "cxuienums.h" |
38 |
35 |
39 #include "OstTraceDefinitions.h" |
36 #include "OstTraceDefinitions.h" |
40 #ifdef OST_TRACE_COMPILER_IN_USE |
37 #ifdef OST_TRACE_COMPILER_IN_USE |
56 object = new CxuiStillPrecaptureView(); |
53 object = new CxuiStillPrecaptureView(); |
57 } else if (name == CxUiLayout::VIDEO_PRE_CAPTURE_VIEW) { |
54 } else if (name == CxUiLayout::VIDEO_PRE_CAPTURE_VIEW) { |
58 object = new CxuiVideoPrecaptureView(); |
55 object = new CxuiVideoPrecaptureView(); |
59 } else if (name == CxUiLayout::POSTCAPTURE_VIEW) { |
56 } else if (name == CxUiLayout::POSTCAPTURE_VIEW) { |
60 object = new CxuiPostcaptureView(); |
57 object = new CxuiPostcaptureView(); |
|
58 } else if (name == CxUiLayout::STILL_SCENES_VIEW) { |
|
59 object = new CxuiSceneModeView(NULL); |
61 } |
60 } |
62 } else if (type == "CxuiStillPrecaptureView2") { |
|
63 object = new CxuiStillPrecaptureView2(); |
|
64 |
|
65 } else if (type == "CxuiVideoPrecaptureView2") { |
|
66 object = new CxuiVideoPrecaptureView2; |
|
67 |
|
68 } else if (type == "HbDialog") { |
61 } else if (type == "HbDialog") { |
69 if (name == CxUiLayout::SETTINGS_DIALOG_WIDGET |
62 if (name == CxUiLayout::SETTINGS_DIALOG_WIDGET |
70 || name == CxUiLayout::SETTINGS_SLIDER_DIALOG_WIDGET) { |
63 || name == CxUiLayout::SETTINGS_SLIDER_DIALOG_WIDGET) { |
71 object = new CxuiSettingDialog(); |
64 object = new CxuiSettingDialog(); |
72 } |
65 } |
73 } else if (type == "CxuiSettingButton") { |
66 } else if (type == "HbSlider") { |
74 object = new CxuiSettingButton(NULL, mEngine); |
67 if (name == CxUiLayout::SETTINGS_SLIDER_DIALOG_CONTENT_WIDGET) { |
75 |
68 object = new CxuiSettingSlider(NULL, mEngine); |
76 } else if (type == "CxuiSettingSlider") { |
69 } else if (name == CxUiLayout::STILL_PRE_CAPTURE_ZOOM_SLIDER |
77 object = new CxuiSettingSlider(NULL, mEngine); |
70 || name == CxUiLayout::VIDEO_PRE_CAPTURE_ZOOM_SLIDER) { |
78 |
71 object = new CxuiZoomSlider(); |
79 } else if (type == "CxuiSettingRadioButtonList") { |
72 } |
80 object = new CxuiSettingRadioButtonList(NULL, mEngine); |
73 } else if (type == "HbRadioButtonList") { |
81 |
74 if (name == CxUiLayout::SETTINGS_DIALOG_CONTENT_WIDGET |
82 } else if (type == "CxuiSceneLabel") { |
75 || name == CxUiLayout::SCENE_VIEW_RADIOBUTTONS) { |
83 object = new CxuiSceneLabel(NULL, mEngine); |
76 object = new CxuiSettingRadioButtonList(NULL, mEngine); |
84 |
77 } |
85 } else if (type == "CxuiSettingButtonContainer") { |
|
86 object = new CxuiSettingButtonContainer(NULL); |
|
87 |
|
88 } |
78 } |
89 |
79 |
90 if (object) { |
80 if (object) { |
91 object->setObjectName(name); |
81 object->setObjectName(name); |
92 } else { |
82 } else { |