equal
deleted
inserted
replaced
43 CxuiSelfTimer::CxuiSelfTimer(CxeSettings &settings) |
43 CxuiSelfTimer::CxuiSelfTimer(CxeSettings &settings) |
44 : mDelay(-1), |
44 : mDelay(-1), |
45 mCounter(0), |
45 mCounter(0), |
46 mTimer(this), |
46 mTimer(this), |
47 mOldPostCaptureTimeOut(UNKNOWN), |
47 mOldPostCaptureTimeOut(UNKNOWN), |
48 mIndicatorContainer(NULL), |
48 mWidgetContainer(NULL), |
49 mButtonContainer(NULL), |
|
50 mTimerLabel(NULL), |
49 mTimerLabel(NULL), |
51 mCancelButton(NULL), |
50 mCancelButton(NULL), |
52 mStartButton(NULL), |
51 mStartButton(NULL), |
53 mSettings(settings) |
52 mSettings(settings) |
54 { |
53 { |
76 if (documentLoader) { |
75 if (documentLoader) { |
77 |
76 |
78 QGraphicsWidget *widget = NULL; |
77 QGraphicsWidget *widget = NULL; |
79 |
78 |
80 widget = documentLoader->findWidget(STILL_PRE_CAPTURE_SELFTIMER_CONTAINER); |
79 widget = documentLoader->findWidget(STILL_PRE_CAPTURE_SELFTIMER_CONTAINER); |
81 mIndicatorContainer = qobject_cast<HbWidget *>(widget); |
80 mWidgetContainer = qobject_cast<HbWidget *>(widget); |
82 CX_DEBUG_ASSERT(mIndicatorContainer); |
81 CX_DEBUG_ASSERT(mWidgetContainer); |
83 |
|
84 widget = documentLoader->findWidget(STILL_PRE_CAPTURE_SELFTIMER_BUTTON_CONTAINER); |
|
85 mButtonContainer = qobject_cast<HbWidget *>(widget); |
|
86 CX_DEBUG_ASSERT(mButtonContainer); |
|
87 |
82 |
88 widget = documentLoader->findWidget(STILL_PRE_CAPTURE_SELFTIMER_COUNTER); |
83 widget = documentLoader->findWidget(STILL_PRE_CAPTURE_SELFTIMER_COUNTER); |
89 mTimerLabel = qobject_cast<HbLabel *>(widget); |
84 mTimerLabel = qobject_cast<HbLabel *>(widget); |
90 CX_DEBUG_ASSERT(mTimerLabel); |
85 CX_DEBUG_ASSERT(mTimerLabel); |
91 |
86 |
307 /*! |
302 /*! |
308 Shows the selftimer widgets. |
303 Shows the selftimer widgets. |
309 */ |
304 */ |
310 void CxuiSelfTimer::showWidgets() |
305 void CxuiSelfTimer::showWidgets() |
311 { |
306 { |
312 if (mIndicatorContainer){ |
307 if (mWidgetContainer){ |
313 mIndicatorContainer->show(); |
308 mWidgetContainer->show(); |
314 } |
309 } |
315 |
310 |
316 if (mButtonContainer){ |
|
317 mButtonContainer->show(); |
|
318 } |
|
319 |
311 |
320 } |
312 } |
321 |
313 |
322 /*! |
314 /*! |
323 Hides the selftimer widgets. |
315 Hides the selftimer widgets. |
324 */ |
316 */ |
325 void CxuiSelfTimer::hideWidgets() |
317 void CxuiSelfTimer::hideWidgets() |
326 { |
318 { |
327 if (mIndicatorContainer){ |
319 if (mWidgetContainer){ |
328 mIndicatorContainer->hide(); |
320 mWidgetContainer->hide(); |
329 } |
321 } |
330 |
322 |
331 if (mButtonContainer){ |
323 |
332 mButtonContainer->hide(); |
324 |
333 } |
325 } |
334 |
|
335 } |
|