118 CxuiDocumentLoader *documentLoader, |
118 CxuiDocumentLoader *documentLoader, |
119 CxuiCaptureKeyHandler * keyHandler, |
119 CxuiCaptureKeyHandler * keyHandler, |
120 HbActivityManager *activityManager) |
120 HbActivityManager *activityManager) |
121 { |
121 { |
122 CX_DEBUG_ENTER_FUNCTION(); |
122 CX_DEBUG_ENTER_FUNCTION(); |
123 OstTrace0( camerax_performance, CXUIPRECAPTUREVIEW_CONSTRUCT, "msg: e_CX_PRECAPVIEW_CONST 1" ); |
123 OstTrace0(camerax_performance, CXUIPRECAPTUREVIEW_CONSTRUCT_1, "msg: e_CX_PRECAPVIEW_CONSTRUCT 1"); |
124 |
124 |
125 CxuiView::construct(mainWindow, engine, documentLoader, keyHandler, activityManager); |
125 CxuiView::construct(mainWindow, engine, documentLoader, keyHandler, activityManager); |
126 |
126 |
127 mSettingsInfo = new CxuiSettingsInfo(engine); |
127 mSettingsInfo = new CxuiSettingsInfo(engine); |
128 CX_DEBUG_ASSERT(mSettingsInfo); |
128 CX_DEBUG_ASSERT(mSettingsInfo); |
158 HbAction* exitAction = new HbAction(Hb::QuitNaviAction, this); |
158 HbAction* exitAction = new HbAction(Hb::QuitNaviAction, this); |
159 connect(exitAction, SIGNAL(triggered()), CxuiServiceProvider::instance(), SLOT(sendFilenameToClientAndExit())); |
159 connect(exitAction, SIGNAL(triggered()), CxuiServiceProvider::instance(), SLOT(sendFilenameToClientAndExit())); |
160 setNavigationAction(exitAction); |
160 setNavigationAction(exitAction); |
161 } |
161 } |
162 |
162 |
163 OstTrace0( camerax_performance, DUP1_CXUIPRECAPTUREVIEW_CONSTRUCT, "msg: e_CX_PRECAPVIEW_CONST 0" ); |
163 OstTrace0(camerax_performance, CXUIPRECAPTUREVIEW_CONSTRUCT_2, "msg: e_CX_PRECAPVIEW_CONSTRUCT 0"); |
164 |
164 |
165 QCoreApplication::instance()->installEventFilter(this); |
165 QCoreApplication::instance()->installEventFilter(this); |
166 CX_DEBUG_EXIT_FUNCTION(); |
166 CX_DEBUG_EXIT_FUNCTION(); |
167 } |
167 } |
168 |
168 |
884 */ |
884 */ |
885 void CxuiPrecaptureView::launchGeoTaggingDisclaimerDialog() |
885 void CxuiPrecaptureView::launchGeoTaggingDisclaimerDialog() |
886 { |
886 { |
887 CX_DEBUG_ENTER_FUNCTION(); |
887 CX_DEBUG_ENTER_FUNCTION(); |
888 |
888 |
889 QString ftuMsg = hbTrId("txt_cam_info_captured_photos_and_videos_will_be_ta"); |
889 HbMessageBox *ftuMessageBox = new HbMessageBox(hbTrId("txt_cam_info_captured_photos_and_videos_will_be_ta"), |
890 QString actionOkTxt = hbTrId("txt_common_button_ok"); |
890 HbMessageBox::MessageTypeInformation); |
891 QString actionSettingsTxt = hbTrId("txt_cam_opt_general_settings"); |
891 |
892 |
892 HbAction *okAction = new HbAction(hbTrId("txt_common_button_ok")); |
893 HbDialog *dialog = new HbDialog(); |
893 HbAction *settingsAction = new HbAction(hbTrId("txt_cam_opt_general_settings")); |
894 HbLabel *label = new HbLabel(); |
|
895 |
|
896 // initializing dialog's content widget |
|
897 label->setPlainText(ftuMsg); |
|
898 label->setTextWrapping(Hb::TextWordWrap); |
|
899 label->setElideMode(Qt::ElideNone); |
|
900 label->setMaximumWidth(350); |
|
901 dialog->setContentWidget(label); |
|
902 |
|
903 // initializing dialog's actions |
|
904 HbAction *okAction = new HbAction(actionOkTxt, dialog); |
|
905 HbAction *settingsAction = new HbAction(actionSettingsTxt, dialog); |
|
906 dialog->addAction(okAction); |
|
907 dialog->addAction(settingsAction); |
|
908 |
894 |
909 // connecting signals for dialog's actions |
895 // connecting signals for dialog's actions |
910 connect(okAction, |
896 connect(okAction, |
911 SIGNAL(triggered()), |
897 SIGNAL(triggered()), |
912 this, |
898 this, |
913 SLOT(disableGeotaggingDisclaimer())); |
899 SLOT(disableGeotaggingDisclaimer())); |
914 |
900 |
915 connect(settingsAction, |
901 connect(settingsAction, |
916 SIGNAL(triggered()), |
902 SIGNAL(triggered()), |
917 this, |
903 this, |
918 SLOT(launchGeoTaggingSetting())); |
904 SLOT(launchGeoTaggingSetting())); |
919 |
905 |
920 // initializing dialog's properties |
906 // adding buttons to the information message |
921 dialog->setTimeout(HbDialog::NoTimeout); |
907 ftuMessageBox->setStandardButtons(HbMessageBox::NoButton); |
922 dialog->setDismissPolicy(HbPopup::NoDismiss); |
908 ftuMessageBox->addAction(okAction); |
923 dialog->setAttribute(Qt::WA_DeleteOnClose, true); |
909 ftuMessageBox->addAction(settingsAction); |
924 dialog->show(); |
910 |
|
911 ftuMessageBox->setAttribute(Qt::WA_DeleteOnClose, true); |
|
912 ftuMessageBox->show(); |
925 |
913 |
926 CX_DEBUG_EXIT_FUNCTION(); |
914 CX_DEBUG_EXIT_FUNCTION(); |
927 } |
915 } |
928 |
916 |
929 /*! |
917 /*! |